From: Steve French <stfrench@microsoft.com>
Date: Mon, 14 Dec 2020 20:15:12 -0600
Subject: [PATCH] smb3: remind users that witness protocol is experimental
Git-commit: dd538034f84fa4ea670420aac19adcceef45d057
Patch-mainline: v5.11-rc1
References: bsc#1192606
warn_once when using the witness protocol that it is experimental
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Samuel Cabrero <scabrero@suse.de>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Acked-by: Enzo Matsumiya <ematsumiya@suse.de>
---
fs/cifs/fs_context.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c
index ca745fa6c4a1..c427e494ea56 100644
--- a/fs/cifs/fs_context.c
+++ b/fs/cifs/fs_context.c
@@ -1098,6 +1098,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
goto cifs_parse_mount_err;
#endif
ctx->witness = true;
+ pr_warn_once("Witness protocol support is experimental\n");
break;
case Opt_rootfs:
#ifdef CONFIG_CIFS_ROOT
--
2.33.1