summaryrefslogtreecommitdiff
path: root/debugfs/util.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2005-03-20 18:03:58 -0500
committerTheodore Ts'o <tytso@mit.edu>2005-03-20 18:03:58 -0500
commitea822eeba373bd0bed6e58a35ce123a9f2768113 (patch)
tree3bff07b18d19576e47c2b5be018c39b28675a215 /debugfs/util.c
parentdc71f23e634724f6571a556e6c6ec26d0e882211 (diff)
downloade2fsprogs-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.c13
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)
{