a195e862cae6e96895b702efa52a38458dc4b42b |
|
09-May-2016 |
Theodore Ts'o <tytso@mit.edu> |
mke2fs: fix the parsing used for -E quotatype=usrquota:grpquota:prjquota Commit 2d2d799c7261 tried to use parse_quota_options(), which uses commas to separate out the quota types. Unfortunately, when parsing extended options, commands are used to separate different extended options. To fix this, I've add a new support function parse_quota_type(), which allows either commas or colons to used as a separator character, and which manipulates a bit field to indicate which quota types should be enabled. Eventually tune2fs should be converted to use parse_quota_type() as well, thus obsoleting parse_quota_options(), but that's a more complicated cleanup patch for later. Fix a lint warning which could the number of blocks to be incorretly printed if it exceeds 2**32. Also fix some typos and other minor bugs in the usage message. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/support/parse_qtype.c
|