]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - repair/incore_bmc.c
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
13 #include "err_protos.h"
16 init_bm_cursor(bmap_cursor_t
*cursor
, int num_levels
)
20 memset(cursor
, 0, sizeof(bmap_cursor_t
));
21 cursor
->ino
= NULLFSINO
;
22 cursor
->num_levels
= num_levels
;
24 for (i
= 0; i
< XR_MAX_BMLEVELS
; i
++) {
25 cursor
->level
[i
].fsbno
= NULLFSBLOCK
;
26 cursor
->level
[i
].right_fsbno
= NULLFSBLOCK
;
27 cursor
->level
[i
].left_fsbno
= NULLFSBLOCK
;
28 cursor
->level
[i
].first_key
= NULLFILEOFF
;
29 cursor
->level
[i
].last_key
= NULLFILEOFF
;