Commit 8f0225a8 authored by Radostin Stoyanov's avatar Radostin Stoyanov Committed by Andrei Vagin

mount: Simplify ext_mount_parse_auto

There are no functional changes.
Signed-off-by: 's avatarRadostin Stoyanov <rstoyanov1@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent a853ccfb
...@@ -77,17 +77,13 @@ int ext_mount_parse_auto(char *key) ...@@ -77,17 +77,13 @@ int ext_mount_parse_auto(char *key)
opts.autodetect_ext_mounts = true; opts.autodetect_ext_mounts = true;
if (*key == ':') { if (*key == ':') {
while (1) { key++;
key++; if (*key == 'm')
if (*key == '\0') opts.enable_external_masters = true;
break; else if (*key == 's')
else if (*key == 'm') opts.enable_external_sharing = true;
opts.enable_external_masters = true; else if (*key != '\0')
else if (*key == 's') return -1;
opts.enable_external_sharing = true;
else
return -1;
}
} }
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment