mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 10:10:00 +00:00
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:
parent
8e29c2be47
commit
ea008a24f7
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user