Re: [f2fs-dev] [RFC PATCH 3/8] dump/fsck: introduce print_xattr_entry

2017-10-31 Thread Chao Yu
On 2017/10/31 17:02, Sheng Yong wrote: > > > On 2017/10/31 15:51, Chao Yu wrote: >> On 2017/10/31 9:38, Sheng Yong wrote: > [...] >>> + >>> +void print_xattr_entry(struct f2fs_xattr_entry *ent) >>> +{ >>> + char *value = (char *)(ent->e_name + le16_to_cpu(ent->e_name_len)); >>> + struct

Re: [f2fs-dev] [RFC PATCH 3/8] dump/fsck: introduce print_xattr_entry

2017-10-31 Thread Sheng Yong
On 2017/10/31 15:51, Chao Yu wrote: On 2017/10/31 9:38, Sheng Yong wrote: [...] + +void print_xattr_entry(struct f2fs_xattr_entry *ent) +{ + char *value = (char *)(ent->e_name + le16_to_cpu(ent->e_name_len)); + struct fscrypt_context *ctx; + int i; + + MSG(0,

Re: [f2fs-dev] [RFC PATCH 3/8] dump/fsck: introduce print_xattr_entry

2017-10-31 Thread Chao Yu
On 2017/10/31 9:38, Sheng Yong wrote: > This patch exports read_all_xattrs to allow dump/fsck to get all xattrs, > and introduces print_xattr_entry which tries to parse an xattr entry > accroding to its xattr index. > > Signed-off-by: Sheng Yong > --- > fsck/dump.c | 18

[f2fs-dev] [RFC PATCH 3/8] dump/fsck: introduce print_xattr_entry

2017-10-30 Thread Sheng Yong
This patch exports read_all_xattrs to allow dump/fsck to get all xattrs, and introduces print_xattr_entry which tries to parse an xattr entry accroding to its xattr index. Signed-off-by: Sheng Yong --- fsck/dump.c | 18 - fsck/fsck.h | 7 +++- fsck/mount.c |