diff options
| author | Mike Frysinger <vapier@gentoo.org> | 2005-09-24 07:11:16 +0000 |
|---|---|---|
| committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-24 07:11:16 +0000 |
| commit | 51a43b47fefaea46b00a74180a7d0b39022e6d11 (patch) | |
| tree | b099fd873abe7e76231ee24fe373dda750c002cf /include | |
| parent | bfe773f471eee7711e19f13df1385208e61c5082 (diff) | |
| download | busybox-w32-51a43b47fefaea46b00a74180a7d0b39022e6d11.tar.gz busybox-w32-51a43b47fefaea46b00a74180a7d0b39022e6d11.tar.bz2 busybox-w32-51a43b47fefaea46b00a74180a7d0b39022e6d11.zip | |
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 0b4faacaa..a814ce1b1 100644 --- a/include/applets.h +++ b/include/applets.h | |||
| @@ -182,6 +182,9 @@ | |||
| 182 | #ifdef CONFIG_DUMPLEASES | 182 | #ifdef CONFIG_DUMPLEASES |
| 183 | APPLET(dumpleases, dumpleases_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) | 183 | APPLET(dumpleases, dumpleases_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) |
| 184 | #endif | 184 | #endif |
| 185 | #ifdef CONFIG_E2FSCK | ||
| 186 | APPLET(e2fsck, e2fsck_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | ||
| 187 | #endif | ||
| 185 | #ifdef CONFIG_E2LABEL | 188 | #ifdef CONFIG_E2LABEL |
| 186 | APPLET_NOUSAGE("e2label", tune2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | 189 | APPLET_NOUSAGE("e2label", tune2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER) |
| 187 | #endif | 190 | #endif |
| @@ -239,6 +242,13 @@ | |||
| 239 | #ifdef CONFIG_FREERAMDISK | 242 | #ifdef CONFIG_FREERAMDISK |
| 240 | APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | 243 | APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER) |
| 241 | #endif | 244 | #endif |
| 245 | #ifdef CONFIG_FSCK | ||
| 246 | APPLET(fsck, fsck_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | ||
| 247 | #endif | ||
| 248 | #ifdef CONFIG_E2FSCK | ||
| 249 | APPLET_NOUSAGE("fsck.ext2", e2fsck_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | ||
| 250 | APPLET_NOUSAGE("fsck.ext3", e2fsck_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | ||
| 251 | #endif | ||
| 242 | #ifdef CONFIG_FSCK_MINIX | 252 | #ifdef CONFIG_FSCK_MINIX |
| 243 | APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, fsck_minix) | 253 | APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, fsck_minix) |
| 244 | #endif | 254 | #endif |
diff --git a/include/usage.h b/include/usage.h index c4516e0eb..fee8bc889 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -546,6 +546,26 @@ | |||
| 546 | "\t-r,\t--remaining\tInterpret lease times as time remaing\n" \ | 546 | "\t-r,\t--remaining\tInterpret lease times as time remaing\n" \ |
| 547 | "\t-a,\t--absolute\tInterpret lease times as expire time" | 547 | "\t-a,\t--absolute\tInterpret lease times as expire time" |
| 548 | 548 | ||
| 549 | #define e2fsck_trivial_usage \ | ||
| 550 | "[-panyrcdfvstDFSV] [-b superblock] [-B blocksize] " \ | ||
| 551 | "[-I inode_buffer_blocks] [-P process_inode_size] " \ | ||
| 552 | "[-l|-L bad_blocks_file] [-C fd] [-j ext-journal] " \ | ||
| 553 | "[-E extended-options] device" | ||
| 554 | #define e2fsck_full_usage \ | ||
| 555 | "Check a Linux ext2/ext3 file system.\n\n" \ | ||
| 556 | "Options:\n" \ | ||
| 557 | "\t-p\tAutomatic repair (no questions)\n" \ | ||
| 558 | "\t-n\tMake no changes to the filesystem\n" \ | ||
| 559 | "\t-y\tAssume 'yes' to all questions\n" \ | ||
| 560 | "\t-c\tCheck for bad blocks and add them to the badblock list\n" \ | ||
| 561 | "\t-f\tForce checking even if filesystem is marked clean\n" \ | ||
| 562 | "\t-v\tBe verbose\n" \ | ||
| 563 | "\t-b superblock\tUse alternative superblock\n" \ | ||
| 564 | "\t-B blocksize\tForce blocksize when looking for superblock\n" \ | ||
| 565 | "\t-j journal\tSet location of the external journal\n" \ | ||
| 566 | "\t-l file\tAdd to badblocks list\n" \ | ||
| 567 | "\t-L file\tSet badblocks list" | ||
| 568 | |||
| 549 | #ifdef CONFIG_FEATURE_FANCY_ECHO | 569 | #ifdef CONFIG_FEATURE_FANCY_ECHO |
| 550 | # define USAGE_FANCY_ECHO(a) a | 570 | # define USAGE_FANCY_ECHO(a) a |
| 551 | #else | 571 | #else |
| @@ -764,6 +784,20 @@ | |||
| 764 | #define freeramdisk_example_usage \ | 784 | #define freeramdisk_example_usage \ |
| 765 | "$ freeramdisk /dev/ram2\n" | 785 | "$ freeramdisk /dev/ram2\n" |
| 766 | 786 | ||
| 787 | #define fsck_trivial_usage \ | ||
| 788 | "[-ANPRTV] [ -C [ fd ] ] [-t fstype] [fs-options] [filesys ...]" | ||
| 789 | #define fsck_full_usage \ | ||
| 790 | "Check and repair filesystems.\n\n" \ | ||
| 791 | "Options:\n" \ | ||
| 792 | "\t-A\tWalk /etc/fstab and check all filesystems\n" \ | ||
| 793 | "\t-N\tDon't execute, just show what would be done\n" \ | ||
| 794 | "\t-P\tWhen using -A, check filesystems in parallel\n" \ | ||
| 795 | "\t-R\tWhen using -A, skip the root filesystem\n" \ | ||
| 796 | "\t-T\tDon't show title on startup\n" \ | ||
| 797 | "\t-V\tVerbose mode\n" \ | ||
| 798 | "\t-C\tWrite status information to specified filedescriptor\n" \ | ||
| 799 | "\t-t\tList of filesystem types to check" | ||
| 800 | |||
| 767 | #define fsck_minix_trivial_usage \ | 801 | #define fsck_minix_trivial_usage \ |
| 768 | "[-larvsmf] /dev/name" | 802 | "[-larvsmf] /dev/name" |
| 769 | #define fsck_minix_full_usage \ | 803 | #define fsck_minix_full_usage \ |
