Re: [PATCH 02/13] btrfs-progs: check: introduce function to find dir_item

2016-09-06 Thread David Sterba
On Thu, Jul 28, 2016 at 03:08:14PM +0800, Lu Fengqi wrote: > +static int find_dir_item(struct btrfs_root *root, struct btrfs_key *ref_key, > + struct btrfs_key *key, u64 index, char *name, > + u32 namelen, u32 mode) > +{ > + struct btrfs_path *path; >

[PATCH 02/13] btrfs-progs: check: introduce function to find dir_item

2016-07-28 Thread Lu Fengqi
Introduce a new function find_dir_item() to find DIR_ITEM for the given key, and check it with the specified INODE_REF/INODE_EXTREF match. Signed-off-by: Lu Fengqi Signed-off-by: Qu Wenruo --- cmds-check.c | 138