diff options
author | Samuel Cabrero <scabrero@suse.de> | 2020-12-11 22:59:29 -0600 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-12-14 09:16:22 -0600 |
commit | 0ac4e2919aa408dfd0fb9ce08ac331a9deeea807 (patch) | |
tree | e09dd54e5e8d66d27741e2297b858e0e7d88beb6 /fs/cifs/fs_context.c | |
parent | 06f08dab3ca726b86431889495c45049616d6a15 (diff) | |
download | linux-0ac4e2919aa408dfd0fb9ce08ac331a9deeea807.tar.bz2 |
cifs: add witness mount option and data structs
Add 'witness' mount option to register for witness notifications.
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/fs_context.c')
-rw-r--r-- | fs/cifs/fs_context.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c index 9120d148c5f1..fe5cc60f4393 100644 --- a/fs/cifs/fs_context.c +++ b/fs/cifs/fs_context.c @@ -119,6 +119,7 @@ const struct fs_parameter_spec smb3_fs_parameters[] = { fsparam_flag("modesid", Opt_modesid), fsparam_flag("rootfs", Opt_rootfs), fsparam_flag("compress", Opt_compress), + fsparam_flag("witness", Opt_witness), /* Mount options which take numeric value */ fsparam_u32("backupuid", Opt_backupuid), @@ -1004,6 +1005,13 @@ static int smb3_fs_context_parse_param(struct fs_context *fc, if (cifs_parse_cache_flavor(param->string, ctx) != 0) goto cifs_parse_mount_err; break; + case Opt_witness: +#ifndef CONFIG_CIFS_SWN_UPCALL + cifs_dbg(VFS, "Witness support needs CONFIG_CIFS_SWN_UPCALL config option\n"); + goto cifs_parse_mount_err; +#endif + ctx->witness = true; + break; case Opt_rootfs: #ifdef CONFIG_CIFS_ROOT ctx->rootfs = true; |