xfs_fileoff_t bno;
xfs_fsblock_t dfsbno;
int haveattr;
- int nex;
+ xfs_extnum_t nex;
char *p;
struct xfs_dinode *dip = iocur_top->data;
xfs_fileoff_t bno;
xfs_fsblock_t dfsbno;
int nb;
- int nex;
+ xfs_extnum_t nex;
char *p;
typnm_t type;
static int bmap_f(int argc, char **argv);
static int bmap_one_extent(xfs_bmbt_rec_t *ep,
xfs_fileoff_t *offp, xfs_fileoff_t eoff,
- int *idxp, bmap_ext_t *bep);
+ xfs_extnum_t *idxp, bmap_ext_t *bep);
static xfs_fsblock_t select_child(xfs_fileoff_t off, xfs_bmbt_key_t *kp,
xfs_bmbt_ptr_t *pp, int nrecs);
xfs_fileoff_t offset,
xfs_filblks_t len,
int whichfork,
- int *nexp,
+ xfs_extnum_t *nexp,
bmap_ext_t *bep)
{
struct xfs_btree_block *block;
enum xfs_dinode_fmt fmt;
int fsize;
xfs_bmbt_key_t *kp;
- int n;
+ xfs_extnum_t n;
int nex;
xfs_fsblock_t nextbno;
- int nextents;
+ xfs_extnum_t nextents;
xfs_bmbt_ptr_t *pp;
xfs_bmdr_block_t *rblock;
typnm_t typ;
struct xfs_dinode *dip;
xfs_fileoff_t eo;
xfs_filblks_t len;
- int nex;
+ xfs_extnum_t nex;
char *p;
int whichfork;
xfs_bmbt_rec_t *ep,
xfs_fileoff_t *offp,
xfs_fileoff_t eoff,
- int *idxp,
+ xfs_extnum_t *idxp,
bmap_ext_t *bep)
{
xfs_filblks_t c;
xfs_fileoff_t curoffset;
int f;
- int idx;
+ xfs_extnum_t idx;
xfs_fileoff_t o;
xfs_fsblock_t s;
void
make_bbmap(
bbmap_t *bbmap,
- int nex,
+ xfs_extnum_t nex,
bmap_ext_t *bmp)
{
- int i;
+ xfs_extnum_t i;
for (i = 0; i < nex; i++) {
bbmap->b[i].bm_bn = XFS_FSB_TO_DADDR(mp, bmp[i].startblock);
} bmap_ext_t;
extern void bmap(xfs_fileoff_t offset, xfs_filblks_t len, int whichfork,
- int *nexp, bmap_ext_t *bep);
+ 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, int nex, bmap_ext_t *bmp);
+extern void make_bbmap(struct bbmap *bbmap, xfs_extnum_t nex,
+ bmap_ext_t *bmp);
static char *prepend_path(char *oldpath, char *parent);
static xfs_ino_t process_block_dir_v2(blkmap_t *blkmap, int *dot,
int *dotdot, inodata_t *id);
-static void process_bmbt_reclist(xfs_bmbt_rec_t *rp, int numrecs,
- dbm_t type, inodata_t *id,
- xfs_rfsblock_t *tot,
+static void process_bmbt_reclist(xfs_bmbt_rec_t *rp,
+ xfs_extnum_t numrecs, dbm_t type,
+ inodata_t *id, xfs_rfsblock_t *tot,
blkmap_t **blkmapp);
static void process_btinode(inodata_t *id, struct xfs_dinode *dip,
dbm_t type, xfs_rfsblock_t *totd,
static void
process_bmbt_reclist(
xfs_bmbt_rec_t *rp,
- int numrecs,
+ xfs_extnum_t numrecs,
dbm_t type,
inodata_t *id,
xfs_rfsblock_t *tot,
xfs_filblks_t c;
xfs_filblks_t cp;
int f;
- int i;
+ xfs_extnum_t i;
xfs_agblock_t iagbno;
xfs_agnumber_t iagno;
xfs_fileoff_t o;
int doprj;
xfs_dqid_t id;
xfs_ino_t ino;
- int nex;
+ xfs_extnum_t nex;
char *p;
int perblock;
xfs_fileoff_t qbno;
bmap_ext_t bm;
uint32_t bno;
xfs_fsblock_t dfsbno;
- int nex;
+ xfs_extnum_t nex;
bno = (uint32_t)getbitval(obj, bit, bitsz(bno), BVUNSIGNED);
if (bno == 0) {
bmap_ext_t bm;
xfs_fileoff_t bno;
xfs_fsblock_t dfsbno;
- int nex;
+ xfs_extnum_t nex;
bno = (xfs_fileoff_t)getbitval(obj, bit, BMBT_STARTOFF_BITLEN,
BVUNSIGNED);
bmap_ext_t *bmp;
xfs_fileoff_t bno;
xfs_fsblock_t dfsbno;
- int nb;
- int nex;
+ xfs_extnum_t nb;
+ xfs_extnum_t nex;
bno = (xfs_fileoff_t)getbitval(obj, bit, BMBT_STARTOFF_BITLEN,
BVUNSIGNED);
bmap_ext_t bm;
xfs_fileoff_t bno;
xfs_fsblock_t dfsbno;
- int nex;
+ xfs_extnum_t nex;
bno = (xfs_fileoff_t)getbitval(obj, bit, bitsz(bno), BVUNSIGNED);
if (bno == NULLFILEOFF) {
bmap_ext_t *bmp;
xfs_fileoff_t bno;
xfs_fsblock_t dfsbno;
- int nb;
- int nex;
+ xfs_extnum_t nb;
+ xfs_extnum_t nex;
bno = (xfs_fileoff_t)getbitval(obj, bit, bitsz(bno), BVUNSIGNED);
if (bno == NULLFILEOFF) {
bmap_ext_t *bmp;
uint32_t bno;
xfs_fsblock_t dfsbno;
- int nex;
+ xfs_extnum_t nex;
bno = (uint32_t)getbitval(obj, bit, bitsz(bno), BVUNSIGNED);
if (bno == 0) {
int whichfork)
{
extmap_t *extmap;
- int nex;
+ xfs_extnum_t nex;
nex = XFS_DFORK_NEXTENTS(dip, whichfork);
if (!nex)
{
int level; /* btree level */
uint maxblocks; /* max blocks at this level */
- uint maxleafents; /* max leaf entries possible */
+ xfs_extnum_t maxleafents; /* max leaf entries possible */
int maxrootrecs; /* max records in root block */
int minleafrecs; /* min records in leaf block */
int minnoderecs; /* min records in node block */
struct xfs_mount *mp,
int whichfork)
{
- uint32_t di_nextents = XFS_DFORK_NEXTENTS(dip, whichfork);
+ xfs_extnum_t di_nextents = XFS_DFORK_NEXTENTS(dip, whichfork);
xfs_extnum_t max_extents;
switch (XFS_DFORK_FORMAT(dip, whichfork)) {
struct xfs_mount *mp = ip->i_mount;
struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork);
int state = xfs_bmap_fork_to_state(whichfork);
- int nex = XFS_DFORK_NEXTENTS(dip, whichfork);
+ xfs_extnum_t nex = XFS_DFORK_NEXTENTS(dip, whichfork);
int size = nex * sizeof(xfs_bmbt_rec_t);
struct xfs_iext_cursor icur;
struct xfs_bmbt_rec *dp;
process_bmbt_reclist_int(
xfs_mount_t *mp,
xfs_bmbt_rec_t *rp,
- int *numrecs,
+ xfs_extnum_t *numrecs,
int type,
xfs_ino_t ino,
xfs_rfsblock_t *tot,
xfs_fsblock_t b;
char *ftype;
char *forkname = get_forkname(whichfork);
- int i;
+ xfs_extnum_t i;
int state;
xfs_agnumber_t agno;
xfs_agblock_t agbno;
process_bmbt_reclist(
xfs_mount_t *mp,
xfs_bmbt_rec_t *rp,
- int *numrecs,
+ xfs_extnum_t *numrecs,
int type,
xfs_ino_t ino,
xfs_rfsblock_t *tot,
scan_bmbt_reclist(
xfs_mount_t *mp,
xfs_bmbt_rec_t *rp,
- int *numrecs,
+ xfs_extnum_t *numrecs,
int type,
xfs_ino_t ino,
xfs_rfsblock_t *tot,
int type,
int *dirty,
xfs_rfsblock_t *tot,
- uint64_t *nex,
+ xfs_extnum_t *nex,
blkmap_t **blkmapp,
int whichfork,
int check_dups)
sizeof(xfs_bmbt_rec_t)) {
do_warn(
_("extent count for ino %" PRIu64 " %s fork too low (%" PRIu64 ") for file format\n"),
- lino, forkname, *nex);
+ lino, forkname, (uint64_t)*nex);
return(1);
}
/*
int type,
int *dirty,
xfs_rfsblock_t *tot,
- uint64_t *nex,
+ xfs_extnum_t *nex,
blkmap_t **blkmapp,
int whichfork,
int check_dups)
xfs_bmbt_rec_t *rp;
xfs_fileoff_t first_key;
xfs_fileoff_t last_key;
- int32_t numrecs;
+ xfs_extnum_t numrecs;
int ret;
lino = XFS_AGINO_TO_INO(mp, agno, ino);
xfs_fileoff_t expected_offset;
xfs_bmbt_rec_t *rp;
xfs_bmbt_irec_t irec;
- int numrecs;
- int i;
+ xfs_extnum_t numrecs;
+ xfs_extnum_t i;
int max_blocks;
if (be64_to_cpu(dino->di_size) <= XFS_DFORK_DSIZE(dino, mp)) {
int type,
int *dirty,
xfs_rfsblock_t *totblocks,
- uint64_t *nextents,
+ xfs_extnum_t *nextents,
blkmap_t **dblkmap,
int check_dups)
{
xfs_ino_t lino = XFS_AGINO_TO_INO(mp, agno, ino);
int err = 0;
- int nex;
+ xfs_extnum_t nex;
/*
* extent count on disk is only valid for positive values. The kernel
int type,
int *dirty,
xfs_rfsblock_t *atotblocks,
- uint64_t *anextents,
+ xfs_extnum_t *anextents,
int check_dups,
int extra_attr_check,
int *retval)
int di_mode;
int type;
int retval = 0;
- uint64_t nextents;
- uint64_t anextents;
+ xfs_extnum_t nextents;
+ xfs_extnum_t anextents;
xfs_ino_t lino;
const int is_free = 0;
const int is_used = 1;
int
process_bmbt_reclist(xfs_mount_t *mp,
xfs_bmbt_rec_t *rp,
- int *numrecs,
+ xfs_extnum_t *numrecs,
int type,
xfs_ino_t ino,
xfs_rfsblock_t *tot,
scan_bmbt_reclist(
xfs_mount_t *mp,
xfs_bmbt_rec_t *rp,
- int *numrecs,
+ xfs_extnum_t *numrecs,
int type,
xfs_ino_t ino,
xfs_rfsblock_t *tot,
xfs_fsblock_t bno,
xfs_ino_t ino,
xfs_rfsblock_t *tot,
- uint64_t *nex,
+ xfs_extnum_t *nex,
blkmap_t **blkmapp,
bmap_cursor_t *bm_cursor,
int isroot,
int whichfork,
xfs_ino_t ino,
xfs_rfsblock_t *tot,
- uint64_t *nex,
+ xfs_extnum_t *nex,
blkmap_t **blkmapp,
bmap_cursor_t *bm_cursor,
int isroot,
xfs_fsblock_t bno,
xfs_ino_t ino,
xfs_rfsblock_t *tot,
- uint64_t *nex,
+ xfs_extnum_t *nex,
blkmap_t **blkmapp,
bmap_cursor_t *bm_cursor,
int isroot,
xfs_fileoff_t first_key;
xfs_fileoff_t last_key;
char *forkname = get_forkname(whichfork);
- int numrecs;
+ xfs_extnum_t numrecs;
xfs_agnumber_t agno;
xfs_agblock_t agbno;
int state;
xfs_fsblock_t bno,
xfs_ino_t ino,
xfs_rfsblock_t *tot,
- uint64_t *nex,
+ xfs_extnum_t *nex,
struct blkmap **blkmapp,
bmap_cursor_t *bm_cursor,
int isroot,
int whichfork,
xfs_ino_t ino,
xfs_rfsblock_t *tot,
- uint64_t *nex,
+ xfs_extnum_t *nex,
struct blkmap **blkmapp,
bmap_cursor_t *bm_cursor,
int isroot,
xfs_fsblock_t bno,
xfs_ino_t ino,
xfs_rfsblock_t *tot,
- uint64_t *nex,
+ xfs_extnum_t *nex,
struct blkmap **blkmapp,
bmap_cursor_t *bm_cursor,
int isroot,