]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - db/bmap.h
xfs_repair: skip block reservation when fixing freelist
[thirdparty/xfsprogs-dev.git] / db / bmap.h
CommitLineData
959ef981 1// SPDX-License-Identifier: GPL-2.0
2bd0ea18 2/*
da23017d
NS
3 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
4 * All Rights Reserved.
2bd0ea18
NS
5 */
6
7struct bbmap;
56b2de80 8struct xfs_bmbt_rec;
2bd0ea18
NS
9
10typedef struct bmap_ext {
5a35bf2c
DC
11 xfs_fileoff_t startoff;
12 xfs_fsblock_t startblock;
13 xfs_filblks_t blockcount;
2bd0ea18
NS
14 int flag;
15} bmap_ext_t;
16
5a35bf2c 17extern void bmap(xfs_fileoff_t offset, xfs_filblks_t len, int whichfork,
2bd0ea18
NS
18 int *nexp, bmap_ext_t *bep);
19extern void bmap_init(void);
5a35bf2c
DC
20extern void convert_extent(struct xfs_bmbt_rec *rp, xfs_fileoff_t *op,
21 xfs_fsblock_t *sp, xfs_filblks_t *cp, int *fp);
2bd0ea18 22extern void make_bbmap(struct bbmap *bbmap, int nex, bmap_ext_t *bmp);