Skip to content

Commit ae997dc

Browse files
smfrenchnukelet
authored andcommitted
smb3: fix snapshot mount option
BugLink: https://bugs.launchpad.net/bugs/2036450 The conversion to the new API broke the snapshot mount option due to 32 vs. 64 bit type mismatch Fixes: 24e0a1e ("cifs: switch to new mount api") Cc: [email protected] # 5.11+ Reported-by: <[email protected]> Acked-by: Ronnie Sahlberg <[email protected]> Signed-off-by: Steve French <[email protected]> (cherry picked from commit 9405b5f) Signed-off-by: Tim Gardner <[email protected]>
1 parent ca85554 commit ae997dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/cifs/fs_context.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const struct fs_parameter_spec smb3_fs_parameters[] = {
149149
fsparam_u32("echo_interval", Opt_echo_interval),
150150
fsparam_u32("max_credits", Opt_max_credits),
151151
fsparam_u32("handletimeout", Opt_handletimeout),
152-
fsparam_u32("snapshot", Opt_snapshot),
152+
fsparam_u64("snapshot", Opt_snapshot),
153153
fsparam_u32("max_channels", Opt_max_channels),
154154

155155
/* Mount options which take string value */
@@ -1090,7 +1090,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
10901090
ctx->echo_interval = result.uint_32;
10911091
break;
10921092
case Opt_snapshot:
1093-
ctx->snapshot_time = result.uint_32;
1093+
ctx->snapshot_time = result.uint_64;
10941094
break;
10951095
case Opt_max_credits:
10961096
if (result.uint_32 < 20 || result.uint_32 > 60000) {

0 commit comments

Comments
 (0)