From 1f2342c6e89280a21c2e1c665803aae0e42185cb Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 10 Aug 2020 16:16:39 +0200 Subject: Add a "--stat" option to rdsquashfs This commit adds a --stat option to rdsquashfs that dumps a lot of information about and inode that tunred out to be usefull in debugging. Signed-off-by: David Oberhollenzer --- bin/rdsquashfs/rdsquashfs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/rdsquashfs/rdsquashfs.h') diff --git a/bin/rdsquashfs/rdsquashfs.h b/bin/rdsquashfs/rdsquashfs.h index 17c0a85..dd50f28 100644 --- a/bin/rdsquashfs/rdsquashfs.h +++ b/bin/rdsquashfs/rdsquashfs.h @@ -30,6 +30,7 @@ #include #include #include +#include enum UNPACK_FLAGS { UNPACK_CHMOD = 0x01, @@ -47,6 +48,7 @@ enum { OP_UNPACK, OP_DESCRIBE, OP_RDATTR, + OP_STAT, }; typedef struct { @@ -60,6 +62,8 @@ typedef struct { void list_files(const sqfs_tree_node_t *node); +int stat_file(const sqfs_tree_node_t *node); + int restore_fstree(sqfs_tree_node_t *root, int flags); int update_tree_attribs(sqfs_xattr_reader_t *xattr, -- cgit v1.2.3