File: bmap.h

package info (click to toggle)
xfsprogs 6.18.0-4
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 11,304 kB
  • sloc: ansic: 167,330; sh: 4,604; makefile: 1,337; python: 835; cpp: 5
file content (23 lines) | stat: -rw-r--r-- 653 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
 * All Rights Reserved.
 */

struct	bbmap;
struct	xfs_bmbt_rec;

typedef struct bmap_ext {
	xfs_fileoff_t	startoff;
	xfs_fsblock_t	startblock;
	xfs_filblks_t	blockcount;
	int		flag;
} bmap_ext_t;

extern void	bmap(xfs_fileoff_t offset, xfs_filblks_t len, int whichfork,
		     xfs_extnum_t *nexp, bmap_ext_t *bep);
extern void	bmap_init(void);
extern void	convert_extent(struct xfs_bmbt_rec *rp, xfs_fileoff_t *op,
			       xfs_fsblock_t *sp, xfs_filblks_t *cp, int *fp);
extern void	make_bbmap(struct bbmap *bbmap, xfs_extnum_t nex,
			   bmap_ext_t *bmp);