mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-01 17:00:36 +00:00
ifdef ext2_print_inode which is not really used.
ext2_print_inode is not really used but it was nice to have for initial development work. #ifdef it under a new EXT2FS_DEBUG knob so that we don't spend time compiling it. MFC after: 3 days
This commit is contained in:
parent
7ce14e216e
commit
33587684a6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274437
@ -74,7 +74,9 @@ int ext2_vfree(struct vnode *, ino_t, int);
|
|||||||
int ext2_vinit(struct mount *, struct vop_vector *, struct vnode **vpp);
|
int ext2_vinit(struct mount *, struct vop_vector *, struct vnode **vpp);
|
||||||
int ext2_lookup(struct vop_cachedlookup_args *);
|
int ext2_lookup(struct vop_cachedlookup_args *);
|
||||||
int ext2_readdir(struct vop_readdir_args *);
|
int ext2_readdir(struct vop_readdir_args *);
|
||||||
|
#ifdef EXT2FS_DEBUG
|
||||||
void ext2_print_inode(struct inode *);
|
void ext2_print_inode(struct inode *);
|
||||||
|
#endif
|
||||||
int ext2_direnter(struct inode *,
|
int ext2_direnter(struct inode *,
|
||||||
struct vnode *, struct componentname *);
|
struct vnode *, struct componentname *);
|
||||||
int ext2_dirremove(struct vnode *, struct componentname *);
|
int ext2_dirremove(struct vnode *, struct componentname *);
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
#define XTIME_TO_NSEC(x) ((x & EXT3_NSEC_MASK) >> 2)
|
#define XTIME_TO_NSEC(x) ((x & EXT3_NSEC_MASK) >> 2)
|
||||||
#define NSEC_TO_XTIME(t) (le32toh(t << 2) & EXT3_NSEC_MASK)
|
#define NSEC_TO_XTIME(t) (le32toh(t << 2) & EXT3_NSEC_MASK)
|
||||||
|
|
||||||
|
#ifdef EXT2FS_DEBUG
|
||||||
void
|
void
|
||||||
ext2_print_inode(struct inode *in)
|
ext2_print_inode(struct inode *in)
|
||||||
{
|
{
|
||||||
@ -75,6 +76,7 @@ ext2_print_inode(struct inode *in)
|
|||||||
ep->e_len, ep->e_start_lo, ep->e_start_hi);
|
ep->e_len, ep->e_start_lo, ep->e_start_hi);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
#endif /* EXT2FS_DEBUG */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* raw ext2 inode to inode
|
* raw ext2 inode to inode
|
||||||
|
@ -974,9 +974,9 @@ ext2_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp)
|
|||||||
for (i = used_blocks; i < EXT2_NDIR_BLOCKS; i++)
|
for (i = used_blocks; i < EXT2_NDIR_BLOCKS; i++)
|
||||||
ip->i_db[i] = 0;
|
ip->i_db[i] = 0;
|
||||||
}
|
}
|
||||||
/*
|
#ifdef EXT2FS_DEBUG
|
||||||
ext2_print_inode(ip);
|
ext2_print_inode(ip);
|
||||||
*/
|
#endif
|
||||||
bqrelse(bp);
|
bqrelse(bp);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user