40dee9a19f
The e2scrib tool has various requirements: - e2scrub and its associated helpers, are bash scripts - e2scrub_all depends on coreutils' readlink; busybox readlink is missing some options: readlink: invalid option -- 'e' - by design, e2scrub only works on an LVM volume Add an option to enable e2scrub. This is probably seldom used, so it does not warrant the usual dance about BR2_PACKAGE_BUSYBOX_SHOW_OTHERS and selecting the tools; we can just depend on the required tools. Signed-off-by: Tian Yuanhao <tianyuanhao@aliyun.com> Cc: Yann E. MORIN <yann.morin.1998@free.fr> Cc: James Hilliard <james.hilliard1@gmail.com> [yann.morin.1998@free.fr: - add a kconfig option like for other tools - move the conditions to that new option - reword the commit log accordingly ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
83 lines
2.3 KiB
Plaintext
83 lines
2.3 KiB
Plaintext
menuconfig BR2_PACKAGE_E2FSPROGS
|
|
bool "e2fsprogs"
|
|
depends on BR2_USE_MMU # util-linux/libblkid
|
|
select BR2_PACKAGE_UTIL_LINUX
|
|
select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
|
|
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
|
help
|
|
The EXT2 file system utilities.
|
|
|
|
The following programs are always built and installed:
|
|
badblocks chattr debugfs dumpe2fs e2freefrag e2fsck e2image
|
|
e2undo e4crypt e4defrag filefrag fsck fuse2fs logsave lsattr
|
|
mke2fs mklost+found resize2fs tune2fs
|
|
|
|
The uuid utilities (uuidd, uuidgen) are not built. Use the
|
|
ones from util-linux, instead.
|
|
|
|
Other programs can be selected individually.
|
|
|
|
http://e2fsprogs.sourceforge.net
|
|
|
|
if BR2_PACKAGE_E2FSPROGS
|
|
|
|
config BR2_PACKAGE_E2FSPROGS_DEBUGFS
|
|
bool "debugfs"
|
|
help
|
|
ext2/ext3/ext4 file system debugger
|
|
|
|
config BR2_PACKAGE_E2FSPROGS_E2IMAGE
|
|
bool "e2image"
|
|
help
|
|
Save critical ext2/ext3/ext4 filesystem metadata to a file
|
|
|
|
config BR2_PACKAGE_E2FSPROGS_E2SCRUB
|
|
bool "e2scrub"
|
|
depends on BR2_PACKAGE_BASH # runtime
|
|
depends on BR2_PACKAGE_COREUTILS # runtime
|
|
depends on BR2_PACKAGE_LVM2 # runtime
|
|
depends on BR2_PACKAGE_UTIL_LINUX # runtime
|
|
help
|
|
Check the contents of a mounted ext[234] filesystem
|
|
|
|
comment "e2scrub needs bash, coreutils, lvm2, and util-linux"
|
|
depends on !BR2_PACKAGE_BASH || !BR2_PACKAGE_COREUTILS \
|
|
|| !BR2_PACKAGE_LVM2 || !BR2_PACKAGE_UTIL_LINUX
|
|
|
|
config BR2_PACKAGE_E2FSPROGS_E4DEFRAG
|
|
bool "e4defrag"
|
|
depends on !BR2_nios2 # fallocate not implemented
|
|
depends on !BR2_TOOLCHAIN_USES_UCLIBC # sync_file_range not impl
|
|
help
|
|
Online defragmenter for ext4 filesystem
|
|
|
|
comment "e4defrag needs a glibc or musl toolchain"
|
|
depends on !BR2_nios2
|
|
depends on BR2_TOOLCHAIN_USES_UCLIBC
|
|
|
|
config BR2_PACKAGE_E2FSPROGS_FSCK
|
|
bool "fsck"
|
|
default y
|
|
depends on !BR2_PACKAGE_UTIL_LINUX_FSCK
|
|
help
|
|
Check and repair a Linux file system. This is a wrapper around
|
|
the filesystem-specific fsck tools.
|
|
|
|
config BR2_PACKAGE_E2FSPROGS_FUSE2FS
|
|
bool "fuse2fs"
|
|
depends on !BR2_STATIC_LIBS # libfuse
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # libfuse
|
|
select BR2_PACKAGE_LIBFUSE
|
|
help
|
|
FUSE file system client for ext2/ext3/ext4 file systems
|
|
|
|
comment "fuse2fs needs a toolchain w/ threads, dynamic library"
|
|
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
|
|
|
config BR2_PACKAGE_E2FSPROGS_RESIZE2FS
|
|
bool "resize2fs"
|
|
help
|
|
ext2/ext3/ext4 file system resizer
|
|
|
|
endif
|