diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-08-10 16:16:39 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-08-12 00:25:34 +0200 |
commit | 1f2342c6e89280a21c2e1c665803aae0e42185cb (patch) | |
tree | 44d218662b47322e1f9c099386067ea7455bab23 /bin/rdsquashfs/rdsquashfs.h | |
parent | 8c4e1ac8a6eb77bdc65ae3bff2795a7755d12b0c (diff) |
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/rdsquashfs/rdsquashfs.h')
-rw-r--r-- | bin/rdsquashfs/rdsquashfs.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <ctype.h> #include <errno.h> #include <stdio.h> +#include <time.h> 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, |