Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

exfat: add the dummy mount options to be backward compatible with staging/exfat

As Ubuntu and Fedora release new version used kernel version equal to or
higher than v5.4, They started to support kernel exfat filesystem.

Linus reported a mount error with new version of exfat on Fedora:

exfat: Unknown parameter 'namecase'

This is because there is a difference in mount option between old
staging/exfat and new exfat. And utf8, debug, and codepage options as
well as namecase have been removed from new exfat.

This patch add the dummy mount options as deprecated option to be
backward compatible with old one.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Namjae Jeon and committed by
Linus Torvalds
907fa893 d2f8825a

+19
+19
fs/exfat/super.c
··· 203 203 Opt_errors, 204 204 Opt_discard, 205 205 Opt_time_offset, 206 + 207 + /* Deprecated options */ 208 + Opt_utf8, 209 + Opt_debug, 210 + Opt_namecase, 211 + Opt_codepage, 206 212 }; 207 213 208 214 static const struct constant_table exfat_param_enums[] = { ··· 229 223 fsparam_enum("errors", Opt_errors, exfat_param_enums), 230 224 fsparam_flag("discard", Opt_discard), 231 225 fsparam_s32("time_offset", Opt_time_offset), 226 + __fsparam(NULL, "utf8", Opt_utf8, fs_param_deprecated, 227 + NULL), 228 + __fsparam(NULL, "debug", Opt_debug, fs_param_deprecated, 229 + NULL), 230 + __fsparam(fs_param_is_u32, "namecase", Opt_namecase, 231 + fs_param_deprecated, NULL), 232 + __fsparam(fs_param_is_u32, "codepage", Opt_codepage, 233 + fs_param_deprecated, NULL), 232 234 {} 233 235 }; 234 236 ··· 291 277 if (result.int_32 < -24 * 60 || result.int_32 > 24 * 60) 292 278 return -EINVAL; 293 279 opts->time_offset = result.int_32; 280 + break; 281 + case Opt_utf8: 282 + case Opt_debug: 283 + case Opt_namecase: 284 + case Opt_codepage: 294 285 break; 295 286 default: 296 287 return -EINVAL;