aboutsummaryrefslogtreecommitdiff
path: root/dump
AgeCommit message (Collapse)Author
2022-03-23erofs-utils: mkfs: rename ctime to mtimeDavid Anderson
Currently mkfs.erofs picks up whatever the system time happened to be when the input file structure was created. Since there's no (easy) way for userspace to control ctime, there's no way to control the per-file ctime that mkfs.erofs uses. In preparation for switching to mtime, rename the "ctime" members of the inode structure. Link: https://lore.kernel.org/r/20220311041724.3107622-1-dvander@google.com Signed-off-by: David Anderson <dvander@google.com> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com> Change-Id: Iff6f5f8a1e5f729f6a5949719b1891a91fd34c41
2022-01-31UPSTREAM: erofs-utils: add missing errors and normalize errors to lower-caseIgor Ostapenko
* Added useful error messages. * Most errors start with lower-case, let's make all non-summarizing error messages lower-case for better consistency. * Sorted default values in fsck's main function to match the struct. Link: https://lore.kernel.org/r/20220129182204.26-1-igoreisberg@gmail.com Link: https://lore.kernel.org/r/20220129194532.26-1-igoreisberg@gmail.com Signed-off-by: Igor Ostapenko <igoreisberg@gmail.com> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com> Change-Id: Ic905051925a8e63b1ad09b8a3c6d8d405c8ac3b1
2021-12-14UPSTREAM: erofs-utils: add an option to dump an inode by pathKelvin Zhang
This is useful when playing around with EROFS images locally. For example, it allows us to inspect block mappings of a filepath. Cherry-picked from commit 80dbfd1e2622c7185b3ec743a33fe8531e340ef1 Link: https://lore.kernel.org/r/20211207140528.185442-1-hsiangkao@linux.alibaba.com Signed-off-by: Kelvin Zhang <zhangkelvin@google.com> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com> Change-Id: I873f553b1ec08e20baeffd2367ddaf8f6bf42312
2021-11-16erofs-utils: dump: support multiple devicesGao Xiang
Add preliminary multiple device support for dump feature. Link: https://lore.kernel.org/r/20211116094939.32246-5-hsiangkao@linux.alibaba.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
2021-11-16erofs-utils: fuse: add multiple device supportGao Xiang
Keep in sync with the latest kernel commit dfeab2e95a75 ("erofs: add multiple device support") Link: https://lore.kernel.org/r/20211116094939.32246-3-hsiangkao@linux.alibaba.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
2021-11-16erofs-utils: dump: refine file info statisticsGao Xiang
Also print the file type when dumping file info. Link: https://lore.kernel.org/r/20211116000619.190667-1-hsiangkao@linux.alibaba.com Cc: Guo Xuenan <guoxuenan@huawei.com> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
2021-11-09erofs-utils: fsck, dump: add missing liblzma dependencyGao Xiang
Otherwise, build will fail when enabling liblzma support. Link: https://lore.kernel.org/r/20211109111812.63959-1-hsiangkao@linux.alibaba.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
2021-10-31erofs-utils: dump: add support for showing file extentsGuo Xuenan
Add option -e to show file extents info, this option needs specify NID as well. (e.g. dump.erofs -e --nid # foo.erofs.img) Link: https://lore.kernel.org/r/20211029091244.1162119-4-guoxuenan@huawei.com Signed-off-by: Guo Xuenan <guoxuenan@huawei.com> Signed-off-by: Wang Qi <mpiglet@outlook.com> Signed-off-by: Gao Xiang <xiang@kernel.org>
2021-10-31erofs-utils: dump: add option to print specified file infomationWang Qi
Add an option --nid to print information of specific NID, including file name/file links/file size/data layout/compression ratio etc.. Link: https://lore.kernel.org/r/20211029091244.1162119-3-guoxuenan@huawei.com Signed-off-by: Guo Xuenan <guoxuenan@huawei.com> Signed-off-by: Wang Qi <mpiglet@outlook.com> Signed-off-by: Gao Xiang <xiang@kernel.org>
2021-10-31erofs-utils: dump: add feature for collecting filesystem statisticsWang Qi
Add -S option, for printing statistics of the overall disk, including file type(by file extension)/size statistics and distribution, number of compressed and uncompressed files, whole compression ratio of image. Link: https://lore.kernel.org/r/20211029091244.1162119-2-guoxuenan@huawei.com Signed-off-by: Guo Xuenan <guoxuenan@huawei.com> Signed-off-by: Wang Qi <mpiglet@outlook.com> Signed-off-by: Gao Xiang <xiang@kernel.org>
2021-10-03erofs-utils: dump: fix linking when using --with-selinuxDavid Michael
The libselinux functions selabel_open and selabel_close are called by lib/config.c, so include libselinux in CFLAGS and LIBS to fix building dump.erofs. Link: https://lore.kernel.org/r/875yufoxvi.fsf@gmail.com Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Gao Xiang <xiang@kernel.org>
2021-09-28erofs-utils: dump: add "-s" option for superblock informationWang Qi
Link: https://lore.kernel.org/r/20210915093537.2579575-2-guoxuenan@huawei.com Signed-off-by: Guo Xuenan <guoxuenan@huawei.com> Signed-off-by: Wang Qi <mpiglet@outlook.com> Signed-off-by: Gao Xiang <xiang@kernel.org>
2021-09-28erofs-utils: introduce dump.erofsWang Qi
Add a dump tool for erofs to facilitate users directly analyzing the erofs image file. Link: https://lore.kernel.org/r/20210915093537.2579575-1-guoxuenan@huawei.com Signed-off-by: Guo Xuenan <guoxuenan@huawei.com> Signed-off-by: Wang Qi <mpiglet@outlook.com> Signed-off-by: Gao Xiang <xiang@kernel.org>