mkfs_ext2: make it able to create images larger than 4G

function                                             old     new   delta
mkfs_ext2_main                                      1904    2145    +241
has_super                                             29      23      -6
PUT                                                   52      40     -12
packed_usage                                       26807   26792     -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 241/-33)           Total: 208 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2009-10-18 16:29:30 +02:00
parent f37eb3999b
commit 77da1cae94
2 changed files with 98 additions and 57 deletions

View File

@@ -2717,11 +2717,12 @@
"[-b BLK_SIZE] " \
/* "[-f fragment-size] [-g blocks-per-group] " */ \
"[-i BYTES_PER_INODE] " \
/* "[-j] [-J journal-options] [-N number-of-inodes] [-n] " */ \
/* "[-j] [-J journal-options] [-N number-of-inodes] " */ \
"[-m RESERVED_PERCENT] " \
/* "[-o creator-os] [-O feature[,...]] [-q] " */ \
/* "[r fs-revision-level] [-E extended-options] [-v] [-F] " */ \
"[-L LABEL] " \
"[-n] " \
/* "[-M last-mounted-directory] [-S] [-T filesystem-type] " */ \
"DEVICE [BLK_COUNT]"
#define mkfs_ext2_full_usage "\n" \
@@ -2738,7 +2739,7 @@
"\n -L LBL 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 Dry run" \
/* "\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" */ \