From acb6ab805217fd69f3f70fa7a3d65739d2dfe14d Mon Sep 17 00:00:00 2001 From: Namjae Jeon Date: Tue, 26 May 2020 21:32:18 +0900 Subject: [PATCH] exfat: add missing time_offset mount option for kernel version that is lower than 5.4 version Signed-off-by: Namjae Jeon --- super.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/super.c b/super.c index 391cc171f04e..5ed7165a1808 100644 --- a/super.c +++ b/super.c @@ -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,