Skip to content

Commit 9405b5f

Browse files
committed
smb3: fix snapshot mount option
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]>
1 parent 754e0b0 commit 9405b5f

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 */
@@ -1078,7 +1078,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
10781078
ctx->echo_interval = result.uint_32;
10791079
break;
10801080
case Opt_snapshot:
1081-
ctx->snapshot_time = result.uint_32;
1081+
ctx->snapshot_time = result.uint_64;
10821082
break;
10831083
case Opt_max_credits:
10841084
if (result.uint_32 < 20 || result.uint_32 > 60000) {

0 commit comments

Comments
 (0)