mkfs.f2fs: drop initial spaces for feature string

This patch removes initial spaces to detect correct feature string.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim 2017-06-05 18:12:55 -07:00
parent 8e29c2be47
commit ea008a24f7

View File

@ -70,6 +70,8 @@ static void f2fs_show_info()
static void parse_feature(const char *features) static void parse_feature(const char *features)
{ {
while (*features == ' ')
features++;
if (!strcmp(features, "encrypt")) { if (!strcmp(features, "encrypt")) {
c.feature |= cpu_to_le32(F2FS_FEATURE_ENCRYPT); c.feature |= cpu_to_le32(F2FS_FEATURE_ENCRYPT);
} else { } else {