mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
ANDROID: sdcardfs: use fsparam_flag to replace fsparam_bool
for mount options definition.
fsparam_bool is used for format like "multiuser=no",
here we keep only supporting the old format of "multiuser,"
Test: with hikey960 board
no output of "sdcardfs: Bad value for 'multiuser'"
and multiuser is in the output of mount command
Fixes: problems related to 328de5287b ("turn fs_param_is_... into functions")
and 48ce73b1be ("fs_parse: handle optional arguments sanely")
Reported-by: youling257 <youling257@gmail.com>
Change-Id: Iac3f537afa9d138801815bbcdeca073e9d002a96
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
This commit is contained in:
@@ -46,15 +46,15 @@ static const struct fs_parameter_spec sdcardfs_fs_specs[] = {
|
||||
fsparam_u32("fsuid", Opt_fsuid),
|
||||
fsparam_u32("fsgid", Opt_fsgid),
|
||||
fsparam_u32("gid", Opt_gid),
|
||||
fsparam_bool("debug", Opt_debug),
|
||||
fsparam_flag("debug", Opt_debug),
|
||||
fsparam_u32("mask", Opt_mask),
|
||||
fsparam_u32("userid", Opt_userid),
|
||||
fsparam_bool("multiuser", Opt_multiuser),
|
||||
fsparam_bool("derive_gid", Opt_gid_derivation),
|
||||
fsparam_bool("default_normal", Opt_default_normal),
|
||||
fsparam_bool("unshared_obb", Opt_unshared_obb),
|
||||
fsparam_flag("multiuser", Opt_multiuser),
|
||||
fsparam_flag("derive_gid", Opt_gid_derivation),
|
||||
fsparam_flag("default_normal", Opt_default_normal),
|
||||
fsparam_flag("unshared_obb", Opt_unshared_obb),
|
||||
fsparam_u32("reserved_mb", Opt_reserved_mb),
|
||||
fsparam_bool("nocache", Opt_nocache),
|
||||
fsparam_flag("nocache", Opt_nocache),
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user