diff options
author | Theodore Ts'o <tytso@mit.edu> | 2005-03-20 18:03:58 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2005-03-20 18:03:58 -0500 |
commit | ea822eeba373bd0bed6e58a35ce123a9f2768113 (patch) | |
tree | 3bff07b18d19576e47c2b5be018c39b28675a215 /debugfs/util.c | |
parent | dc71f23e634724f6571a556e6c6ec26d0e882211 (diff) | |
download | e2fsprogs-ea822eeba373bd0bed6e58a35ce123a9f2768113.tar.gz |
Enhance debugfs's stat command so it can dump extended attributes
which are stored in the inode body.
Diffstat (limited to 'debugfs/util.c')
-rw-r--r-- | debugfs/util.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/debugfs/util.c b/debugfs/util.c index b1a66e8c..b74a7bd2 100644 --- a/debugfs/util.c +++ b/debugfs/util.c @@ -307,6 +307,19 @@ int common_block_args_process(int argc, char *argv[], return 0; } +int debugfs_read_inode_full(ext2_ino_t ino, struct ext2_inode * inode, + const char *cmd, int bufsize) +{ + int retval; + + retval = ext2fs_read_inode_full(current_fs, ino, inode, bufsize); + if (retval) { + com_err(cmd, retval, "while reading inode %u", ino); + return 1; + } + return 0; +} + int debugfs_read_inode(ext2_ino_t ino, struct ext2_inode * inode, const char *cmd) { |