aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-06-11 05:29:40 +0000
committerMike Frysinger <vapier@gentoo.org>2005-06-11 05:29:40 +0000
commit6447ac0ef47a99619e0a51ff6bcb4f8c9ea5bdb8 (patch)
treef7bb3bdfb16f8b0927ae91164c2bfa6373c8c0a9 /include
parent174808cedbc069d59e8a2cb570d35d9001c1e51b (diff)
downloadbusybox-6447ac0ef47a99619e0a51ff6bcb4f8c9ea5bdb8.tar.gz
import initial fat mke2fs
Diffstat (limited to 'include')
-rw-r--r--include/applets.h7
-rw-r--r--include/usage.h31
2 files changed, 38 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index d6e767dbf..e0b18085a 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -395,9 +395,16 @@
#ifdef CONFIG_MKDIR
APPLET(mkdir, mkdir_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_MKE2FS
+ APPLET(mke2fs, mke2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_MKFIFO
APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_MKE2FS
+ APPLET_NOUSAGE("mkfs.ext2", mke2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
+ APPLET_NOUSAGE("mkfs.ext3", mke2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_MKFS_MINIX
APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, mkfs_minix)
#endif
diff --git a/include/usage.h b/include/usage.h
index 1ab728f26..5fb9858bc 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1705,6 +1705,37 @@
"/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 \
+ "\t-b size\tblock size in bytes\n" \
+ "\t-c\tcheck for bad blocks before creating\n" \
+ "\t-E opts\tset extended options\n" \
+ "\t-f size\tfragment size in bytes\n" \
+ "\t-F\tforce (ignore sanity checks)\n" \
+ "\t-g num\tnumber of blocks in a block group\n" \
+ "\t-i ratio\tthe bytes/inode ratio\n" \
+ "\t-j\tcreate a journal (ext3)\n" \
+ "\t-J opts\tset journal options (size/device)\n" \
+ "\t-l file\tread bad blocks list from file\n" \
+ "\t-L lbl\tset the volume label\n" \
+ "\t-m percent\tpercent of fs blocks to reserve for admin\n" \
+ "\t-M dir\tset last mounted directory\n" \
+ "\t-n\tdo not actually create anything\n" \
+ "\t-N num\tnumber of inodes to create\n" \
+ "\t-o os\tset the 'creator os' field\n" \
+ "\t-O features\tdir_index/filetype/has_journal/journal_dev/sparse_super\n" \
+ "\t-q\tquiet execution\n" \
+ "\t-r rev\tset filesystem revision\n" \
+ "\t-S\twrite superblock and group descriptors only\n" \
+ "\t-T fs-type\tset usage type (news/largefile/largefile4)\n" \
+ "\t-v\tverbose execution"
+
#define mkfifo_trivial_usage \
"[OPTIONS] name"
#define mkfifo_full_usage \