diff options
author | Mike Frysinger | 2005-09-24 07:11:16 +0000 |
---|---|---|
committer | Mike Frysinger | 2005-09-24 07:11:16 +0000 |
commit | 51a43b47fefaea46b00a74180a7d0b39022e6d11 (patch) | |
tree | b099fd873abe7e76231ee24fe373dda750c002cf /include | |
parent | bfe773f471eee7711e19f13df1385208e61c5082 (diff) | |
download | busybox-51a43b47fefaea46b00a74180a7d0b39022e6d11.zip busybox-51a43b47fefaea46b00a74180a7d0b39022e6d11.tar.gz |
import the very fat e2fsck/fsck applets
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 10 | ||||
-rw-r--r-- | include/usage.h | 34 |
2 files changed, 44 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index 0b4faac..a814ce1 100644 --- a/include/applets.h +++ b/include/applets.h @@ -182,6 +182,9 @@ #ifdef CONFIG_DUMPLEASES APPLET(dumpleases, dumpleases_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) #endif +#ifdef CONFIG_E2FSCK + APPLET(e2fsck, e2fsck_main, _BB_DIR_SBIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_E2LABEL APPLET_NOUSAGE("e2label", tune2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER) #endif @@ -239,6 +242,13 @@ #ifdef CONFIG_FREERAMDISK APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER) #endif +#ifdef CONFIG_FSCK + APPLET(fsck, fsck_main, _BB_DIR_SBIN, _BB_SUID_NEVER) +#endif +#ifdef CONFIG_E2FSCK + APPLET_NOUSAGE("fsck.ext2", e2fsck_main, _BB_DIR_SBIN, _BB_SUID_NEVER) + APPLET_NOUSAGE("fsck.ext3", e2fsck_main, _BB_DIR_SBIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_FSCK_MINIX APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, fsck_minix) #endif diff --git a/include/usage.h b/include/usage.h index c4516e0..fee8bc8 100644 --- a/include/usage.h +++ b/include/usage.h @@ -546,6 +546,26 @@ "\t-r,\t--remaining\tInterpret lease times as time remaing\n" \ "\t-a,\t--absolute\tInterpret lease times as expire time" +#define e2fsck_trivial_usage \ + "[-panyrcdfvstDFSV] [-b superblock] [-B blocksize] " \ + "[-I inode_buffer_blocks] [-P process_inode_size] " \ + "[-l|-L bad_blocks_file] [-C fd] [-j ext-journal] " \ + "[-E extended-options] device" +#define e2fsck_full_usage \ + "Check a Linux ext2/ext3 file system.\n\n" \ + "Options:\n" \ + "\t-p\tAutomatic repair (no questions)\n" \ + "\t-n\tMake no changes to the filesystem\n" \ + "\t-y\tAssume 'yes' to all questions\n" \ + "\t-c\tCheck for bad blocks and add them to the badblock list\n" \ + "\t-f\tForce checking even if filesystem is marked clean\n" \ + "\t-v\tBe verbose\n" \ + "\t-b superblock\tUse alternative superblock\n" \ + "\t-B blocksize\tForce blocksize when looking for superblock\n" \ + "\t-j journal\tSet location of the external journal\n" \ + "\t-l file\tAdd to badblocks list\n" \ + "\t-L file\tSet badblocks list" + #ifdef CONFIG_FEATURE_FANCY_ECHO # define USAGE_FANCY_ECHO(a) a #else @@ -764,6 +784,20 @@ #define freeramdisk_example_usage \ "$ freeramdisk /dev/ram2\n" +#define fsck_trivial_usage \ + "[-ANPRTV] [ -C [ fd ] ] [-t fstype] [fs-options] [filesys ...]" +#define fsck_full_usage \ + "Check and repair filesystems.\n\n" \ + "Options:\n" \ + "\t-A\tWalk /etc/fstab and check all filesystems\n" \ + "\t-N\tDon't execute, just show what would be done\n" \ + "\t-P\tWhen using -A, check filesystems in parallel\n" \ + "\t-R\tWhen using -A, skip the root filesystem\n" \ + "\t-T\tDon't show title on startup\n" \ + "\t-V\tVerbose mode\n" \ + "\t-C\tWrite status information to specified filedescriptor\n" \ + "\t-t\tList of filesystem types to check" + #define fsck_minix_trivial_usage \ "[-larvsmf] /dev/name" #define fsck_minix_full_usage \ |