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.c | |
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.c')
-rw-r--r-- | bin/rdsquashfs/rdsquashfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/rdsquashfs/rdsquashfs.c b/bin/rdsquashfs/rdsquashfs.c index 78f54ba..1c11afa 100644 --- a/bin/rdsquashfs/rdsquashfs.c +++ b/bin/rdsquashfs/rdsquashfs.c @@ -111,6 +111,10 @@ int main(int argc, char **argv) case OP_LS: list_files(n); break; + case OP_STAT: + if (stat_file(n)) + goto out; + break; case OP_CAT: if (!S_ISREG(n->inode->base.mode)) { fprintf(stderr, "/%s: not a regular file\n", |