exfat: add missing time_offset mount option for kernel version that is lower than 5.4 version

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
Namjae Jeon 2020-05-26 21:32:18 +09:00
commit acb6ab8052

12
super.c
View file

@ -362,6 +362,7 @@ enum {
Opt_err_ro,
Opt_err,
Opt_discard,
Opt_time_offset,
Opt_fs,
};
@ -452,6 +453,17 @@ static int parse_options(struct super_block *sb, char *options, int silent,
case Opt_discard:
opts->discard = 1;
break;
case Opt_time_offset:
if (match_int(&args[0], &option))
return -EINVAL;
/*
* Make the limit 24 just in case someone
* invents something unusual.
*/
if (option < -24 * 60 || option > 24 * 60)
return -EINVAL;
opts->time_offset = option;
break;
default:
if (!silent) {
exfat_msg(sb, KERN_ERR,