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, 15 Aug 2018 02:08:04 +0000 (12:08 +1000)
commita834b21418aa33c8681873585bdcb82f3b46ab76
treee45c96d18541d3a2a86706d5e82bd5d963100710
parentc59c1b9afe9d1c3f764b2ffa1fee49129d08faac
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