summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVladimir Dronnikov2009-10-17 21:38:19 +0200
committerDenys Vlasenko2009-10-17 21:38:19 +0200
commit823b4e6f260137bcd72a8b96587ef85a9bd7eac7 (patch)
tree5d782388d41af7b0e0a3991d9dc32024329b7ff9 /include
parent8dbe9bba8ef8f12b0ce90042a5b6a1e20fe781bf (diff)
downloadbusybox-823b4e6f260137bcd72a8b96587ef85a9bd7eac7.zip
busybox-823b4e6f260137bcd72a8b96587ef85a9bd7eac7.tar.gz
mkfs_ext2: new applet by Vladimir
function old new delta mkfs_ext2_main - 2011 +2011 static.supers - 184 +184 allocate - 118 +118 packed_usage 26692 26791 +99 PUT - 52 +52 has_super - 28 +28 applet_names 2143 2160 +17 applet_main 1264 1272 +8 applet_nameofs 632 636 +4 applet_install_loc 158 159 +1 ------------------------------------------------------------------------------ (add/remove: 5/0 grow/shrink: 5/0 up/down: 2522/0) Total: 2522 bytes Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/applets.h4
-rw-r--r--include/usage.h67
2 files changed, 38 insertions, 33 deletions
diff --git a/include/applets.h b/include/applets.h
index 9b6b54e..9ca8462 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -258,9 +258,9 @@ IF_MESG(APPLET(mesg, _BB_DIR_USR_BIN, _BB_SUID_DROP))
IF_MICROCOM(APPLET(microcom, _BB_DIR_USR_BIN, _BB_SUID_DROP))
IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, _BB_DIR_BIN, _BB_SUID_DROP, mkdir))
IF_MKFS_VFAT(APPLET_ODDNAME(mkdosfs, mkfs_vfat, _BB_DIR_SBIN, _BB_SUID_DROP, mkfs_vfat))
-//IF_MKE2FS(APPLET(mke2fs, _BB_DIR_SBIN, _BB_SUID_DROP))
+IF_MKFS_EXT2(APPLET_ODDNAME(mke2fs, mkfs_ext2, _BB_DIR_SBIN, _BB_SUID_DROP, mkfs_ext2))
IF_MKFIFO(APPLET(mkfifo, _BB_DIR_USR_BIN, _BB_SUID_DROP))
-//IF_MKE2FS(APPLET_ODDNAME(mkfs.ext2, mke2fs, _BB_DIR_SBIN, _BB_SUID_DROP, mkfs_ext2))
+IF_MKFS_EXT2(APPLET_ODDNAME(mkfs.ext2, mkfs_ext2, _BB_DIR_SBIN, _BB_SUID_DROP, mkfs_ext2))
//IF_MKE2FS(APPLET_ODDNAME(mkfs.ext3, mke2fs, _BB_DIR_SBIN, _BB_SUID_DROP, mkfs_ext3))
IF_MKFS_MINIX(APPLET_ODDNAME(mkfs.minix, mkfs_minix, _BB_DIR_SBIN, _BB_SUID_DROP, mkfs_minix))
IF_MKFS_VFAT(APPLET_ODDNAME(mkfs.vfat, mkfs_vfat, _BB_DIR_SBIN, _BB_SUID_DROP, mkfs_vfat))
diff --git a/include/usage.h b/include/usage.h
index 3cb05e0..0215fa5 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2702,37 +2702,6 @@
"/tmp/foo/bar/baz: No such file or directory\n" \
"$ mkdir -p /tmp/foo/bar/baz\n"
-#define mke2fs_trivial_usage \
- "[-c|-l filename] [-b block-size] [-f fragment-size] [-g blocks-per-group] " \
- "[-i bytes-per-inode] [-j] [-J journal-options] [-N number-of-inodes] [-n] " \
- "[-m reserved-blocks-percentage] [-o creator-os] [-O feature[,...]] [-q] " \
- "[r fs-revision-level] [-E extended-options] [-v] [-F] [-L volume-label] " \
- "[-M last-mounted-directory] [-S] [-T filesystem-type] " \
- "device [blocks-count]"
-#define mke2fs_full_usage "\n\n" \
- " -b size Block size in bytes" \
- "\n -c Check for bad blocks before creating" \
- "\n -E opts Set extended options" \
- "\n -f size Fragment size in bytes" \
- "\n -F Force (ignore sanity checks)" \
- "\n -g num Number of blocks in a block group" \
- "\n -i ratio The bytes/inode ratio" \
- "\n -j Create a journal (ext3)" \
- "\n -J opts Set journal options (size/device)" \
- "\n -l file Read bad blocks list from file" \
- "\n -L lbl Set the volume label" \
- "\n -m percent Percent of fs blocks to reserve for admin" \
- "\n -M dir Set last mounted directory" \
- "\n -n Don't actually create anything" \
- "\n -N num Number of inodes to create" \
- "\n -o os Set the 'creator os' field" \
- "\n -O features Dir_index/filetype/has_journal/journal_dev/sparse_super" \
- "\n -q Quiet" \
- "\n -r rev Set filesystem revision" \
- "\n -S Write superblock and group descriptors only" \
- "\n -T fs-type Set usage type (news/largefile/largefile4)" \
- "\n -v Verbose" \
-
#define mkfifo_trivial_usage \
"[OPTIONS] name"
#define mkfifo_full_usage "\n\n" \
@@ -2743,6 +2712,42 @@
"\n -Z Set security context" \
)
+#define mkfs_ext2_trivial_usage \
+ /* "[-c|-l filename] " */ \
+ "[-b BLK_SIZE] " \
+ /* "[-f fragment-size] [-g blocks-per-group] " */ \
+ "[-i BYTES_PER_INODE] " \
+ /* "[-j] [-J journal-options] [-N number-of-inodes] [-n] " */ \
+ "[-m RESERVED_PERCENT] " \
+ /* "[-o creator-os] [-O feature[,...]] [-q] " */ \
+ /* "[r fs-revision-level] [-E extended-options] [-v] [-F] " */ \
+ "[-L LABEL] " \
+ /* "[-M last-mounted-directory] [-S] [-T filesystem-type] " */ \
+ "DEVICE [BLK_COUNT]"
+#define mkfs_ext2_full_usage "\n" \
+ "\n -b BLK_SIZE Block size in bytes" \
+/* "\n -c Check for bad blocks before creating" */ \
+/* "\n -E opts Set extended options" */ \
+/* "\n -f size Fragment size in bytes" */ \
+/* "\n -F Force (ignore sanity checks)" */ \
+/* "\n -g num Number of blocks in a block group" */ \
+ "\n -i BYTES The bytes/inode ratio" \
+/* "\n -j Create a journal (ext3)" */ \
+/* "\n -J opts Set journal options (size/device)" */ \
+/* "\n -l file Read bad blocks list from file" */ \
+ "\n -L LABEL Set the volume label" \
+ "\n -m PERCENT Percent of blocks to reserve for admin" \
+/* "\n -M dir Set last mounted directory" */ \
+/* "\n -n Don't actually create anything" */ \
+/* "\n -N num Number of inodes to create" */ \
+/* "\n -o os Set the 'creator os' field" */ \
+/* "\n -O features Dir_index/filetype/has_journal/journal_dev/sparse_super" */ \
+/* "\n -q Quiet" */ \
+/* "\n -r rev Set filesystem revision" */ \
+/* "\n -S Write superblock and group descriptors only" */ \
+/* "\n -T fs-type Set usage type (news/largefile/largefile4)" */ \
+/* "\n -v Verbose" */ \
+
#define mkfs_minix_trivial_usage \
"[-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]"
#define mkfs_minix_full_usage "\n\n" \