OSDN Git Service

mke2fs: teach mke2fs to understand -b 4k and -C 256M
authorTheodore Ts'o <tytso@mit.edu>
Tue, 15 Jan 2013 00:03:11 +0000 (19:03 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 15 Jan 2013 19:06:55 +0000 (14:06 -0500)
commit86a985e74987b08090ecbacf3d02c8d80594c809
treee6c563204c65b626504d0336d92c25c5e23d9a64
parent35d886b67947dcb802da09306b6a85f1e9f99865
mke2fs: teach mke2fs to understand -b 4k and -C 256M

The -b and -C options now use parse_num_blocks2() instead of strtol,
so that users can specify -C 256M instead of the much less convenient
-C 268435456.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
misc/mke2fs.c