Whamcloud - gitweb
debugfs: dump "fid" and "lma" xattrs on inode stat
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 13 Apr 2012 18:55:45 +0000 (12:55 -0600)
committerLi Dongyang <dongyangli@ddn.com>
Wed, 19 Dec 2018 22:29:09 +0000 (09:29 +1100)
commitb515ea4694967420b141947d0b53550cc85583cc
treead3a5bb5be9db9aa22481835d1de7eea4bfcc74f
parente5567c1400f5e0ce5b257c8c4778f893b946abdd
debugfs: dump "fid" and "lma" xattrs on inode stat

Print out the Lustre "fid" and "lma" object xattr contents,
if present, with debugfs stat to simplify debugging.

  LU-8998 debugfs: handle combined LMA EA and PFID EA

  We need to store the stripe size and stripe count information in
  the OST object's PFID EA for the layout LFSCK to recover the MDT
  object or its (lost or corrupted) LOV EA. On the other hand, for
  PFL file, we also need to store its PFL ID and extent information
  in its OST object's PFID EA.

  Consider performance, we will store the PFID EA inside the inode
  body to avoid extra IO when read/write the PFID EA. Unfortunately,
  the space inside current 256-bytes inode for EA is very limited,
  and above enlarged PFID EA exceeds such limitation. So we have to
  make some hack with the PFID EA and LMA EA combined together. The
  patch makes the debugfs tool to handle such case properly.

Signed-off-by: Fan Yong <fan.yong@intel.com>
  Change-Id: I1380d16d94d6d05272e22fdfff07ada038685669
  Reviewed-on: https://review.whamcloud.com/19436
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
debugfs/Makefile.in
debugfs/xattrs.c
lib/ext2fs/ext2fs.h
lib/ext2fs/ext_attr.c
lib/ext2fs/lfsck.h
misc/fuse2fs.c