Age | Commit message (Collapse) | Author |
|
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
|
|
* 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
|
|
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
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|