aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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 @@
395#ifdef CONFIG_MKDIR 395#ifdef CONFIG_MKDIR
396 APPLET(mkdir, mkdir_main, _BB_DIR_BIN, _BB_SUID_NEVER) 396 APPLET(mkdir, mkdir_main, _BB_DIR_BIN, _BB_SUID_NEVER)
397#endif 397#endif
398#ifdef CONFIG_MKE2FS
399 APPLET(mke2fs, mke2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
400#endif
398#ifdef CONFIG_MKFIFO 401#ifdef CONFIG_MKFIFO
399 APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) 402 APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
400#endif 403#endif
404#ifdef CONFIG_MKE2FS
405 APPLET_NOUSAGE("mkfs.ext2", mke2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
406 APPLET_NOUSAGE("mkfs.ext3", mke2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
407#endif
401#ifdef CONFIG_MKFS_MINIX 408#ifdef CONFIG_MKFS_MINIX
402 APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, mkfs_minix) 409 APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, mkfs_minix)
403#endif 410#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 @@
1705 "/tmp/foo/bar/baz: No such file or directory\n" \ 1705 "/tmp/foo/bar/baz: No such file or directory\n" \
1706 "$ mkdir -p /tmp/foo/bar/baz\n" 1706 "$ mkdir -p /tmp/foo/bar/baz\n"
1707 1707
1708#define mke2fs_trivial_usage \
1709 "[-c|-l filename] [-b block-size] [-f fragment-size] [-g blocks-per-group] " \
1710 "[-i bytes-per-inode] [-j] [-J journal-options] [-N number-of-inodes] [-n] " \
1711 "[-m reserved-blocks-percentage] [-o creator-os] [-O feature[,...]] [-q] " \
1712 "[r fs-revision-level] [-E extended-options] [-v] [-F] [-L volume-label] " \
1713 "[-M last-mounted-directory] [-S] [-T filesystem-type] " \
1714 "device [blocks-count]"
1715#define mke2fs_full_usage \
1716 "\t-b size\tblock size in bytes\n" \
1717 "\t-c\tcheck for bad blocks before creating\n" \
1718 "\t-E opts\tset extended options\n" \
1719 "\t-f size\tfragment size in bytes\n" \
1720 "\t-F\tforce (ignore sanity checks)\n" \
1721 "\t-g num\tnumber of blocks in a block group\n" \
1722 "\t-i ratio\tthe bytes/inode ratio\n" \
1723 "\t-j\tcreate a journal (ext3)\n" \
1724 "\t-J opts\tset journal options (size/device)\n" \
1725 "\t-l file\tread bad blocks list from file\n" \
1726 "\t-L lbl\tset the volume label\n" \
1727 "\t-m percent\tpercent of fs blocks to reserve for admin\n" \
1728 "\t-M dir\tset last mounted directory\n" \
1729 "\t-n\tdo not actually create anything\n" \
1730 "\t-N num\tnumber of inodes to create\n" \
1731 "\t-o os\tset the 'creator os' field\n" \
1732 "\t-O features\tdir_index/filetype/has_journal/journal_dev/sparse_super\n" \
1733 "\t-q\tquiet execution\n" \
1734 "\t-r rev\tset filesystem revision\n" \
1735 "\t-S\twrite superblock and group descriptors only\n" \
1736 "\t-T fs-type\tset usage type (news/largefile/largefile4)\n" \
1737 "\t-v\tverbose execution"
1738
1708#define mkfifo_trivial_usage \ 1739#define mkfifo_trivial_usage \
1709 "[OPTIONS] name" 1740 "[OPTIONS] name"
1710#define mkfifo_full_usage \ 1741#define mkfifo_full_usage \