Whamcloud - gitweb
debugfs: fix printing of inline data during symlink inode dump
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 22 Jul 2014 22:01:53 +0000 (18:01 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 22 Jul 2014 22:44:33 +0000 (18:44 -0400)
commit7ba5cc744b842da7a7109fbf8f0c53dbc63bcae1
tree4504fb8dfe79983fbfff6fd5d84d3a29a45eb3ad
parentf9f3050a0ad9be1c37b00c8478199d286ddcaeda
debugfs: fix printing of inline data during symlink inode dump

When we're dumping a fast symlink inode, we print some odd things to
stdout.  To clean this up, first don't print inline data EA, since the
inode dump doesn't display file and directory contents.  Then, teach
the inode dump function how to print out either an inline data fast
symlink or a non-inline data fast symlink.

(This is a follow-up to the earlier patch "debugfs: Only print the
first 60 bytes from i_block on a fast symlink")

[ Modified by tytso so that the d_inline_dump test works when build
  directory is different from the source directory --- i.e., when
  doing a VPATH build. ]

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/debugfs.c
debugfs/xattrs.c
tests/d_inline_dump/expect [new file with mode: 0644]
tests/d_inline_dump/image.gz [new file with mode: 0644]
tests/d_inline_dump/name [new file with mode: 0644]
tests/d_inline_dump/script [new file with mode: 0644]
tests/d_special_files/expect