* [PATCH] cifs: remove unused SMB2 config and mount options
@ 2011-05-22 11:04 Christoph Hellwig
[not found] ` <20110522110451.GA14262-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2011-05-22 11:04 UTC (permalink / raw)
To: linux-cifs-u79uwXL29TY76Z2rM5mHXA
There's no SMB2 support in the CIFS filesystem driver, so there's no need to
have a config and mount option for it.
Signed-off-by: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
Index: linux-2.6/fs/cifs/Kconfig
===================================================================
--- linux-2.6.orig/fs/cifs/Kconfig 2011-05-22 12:58:07.148945770 +0200
+++ linux-2.6/fs/cifs/Kconfig 2011-05-22 12:58:20.511946113 +0200
@@ -153,26 +153,6 @@ config CIFS_ACL
Allows to fetch CIFS/NTFS ACL from the server. The DACL blob
is handed over to the application/caller.
-config CIFS_SMB2
- bool "SMB2 network file system support (EXPERIMENTAL)"
- depends on EXPERIMENTAL && INET && BROKEN
- select NLS
- select KEYS
- select FSCACHE
- select DNS_RESOLVER
-
- help
- This enables experimental support for the SMB2 (Server Message Block
- version 2) protocol. The SMB2 protocol is the successor to the
- popular CIFS and SMB network file sharing protocols. SMB2 is the
- native file sharing mechanism for recent versions of Windows
- operating systems (since Vista). SMB2 enablement will eventually
- allow users better performance, security and features, than would be
- possible with cifs. Note that smb2 mount options also are simpler
- (compared to cifs) due to protocol improvements.
-
- Unless you are a developer or tester, say N.
-
config CIFS_NFSD_EXPORT
bool "Allow nfsd to export CIFS file system (EXPERIMENTAL)"
depends on CIFS && EXPERIMENTAL
Index: linux-2.6/fs/cifs/connect.c
===================================================================
--- linux-2.6.orig/fs/cifs/connect.c 2011-05-22 12:58:07.156946032 +0200
+++ linux-2.6/fs/cifs/connect.c 2011-05-22 12:58:20.515945837 +0200
@@ -102,7 +102,6 @@ struct smb_vol {
bool fsc:1; /* enable fscache */
bool mfsymlinks:1; /* use Minshall+French Symlinks */
bool multiuser:1;
- bool use_smb2:1; /* force smb2 use on mount instead of cifs */
unsigned int rsize;
unsigned int wsize;
bool sockopt_tcp_nodelay:1;
@@ -1062,13 +1061,6 @@ cifs_parse_mount_options(const char *mou
(strnicmp(value, "1", 1) == 0)) {
/* this is the default */
continue;
- } else if ((strnicmp(value, "smb2", 4) == 0) ||
- (strnicmp(value, "2", 1) == 0)) {
-#ifdef CONFIG_CIFS_SMB2
- vol->use_smb2 = true;
-#else
- cERROR(1, "smb2 support not enabled");
-#endif /* CONFIG_CIFS_SMB2 */
}
} else if ((strnicmp(data, "unc", 3) == 0)
|| (strnicmp(data, "target", 6) == 0)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] cifs: remove unused SMB2 config and mount options
[not found] ` <20110522110451.GA14262-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
@ 2011-05-23 18:14 ` Steve French
0 siblings, 0 replies; 2+ messages in thread
From: Steve French @ 2011-05-23 18:14 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA
On Sun, May 22, 2011 at 6:04 AM, Christoph Hellwig <hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org> wrote:
> There's no SMB2 support in the CIFS filesystem driver, so there's no need to
> have a config and mount option for it.
>
> Signed-off-by: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
Merged.
Pavel noted that he now has a script to add/reenable the smb2 config
option and that he is ok with readding the small smb2 specific hits to
the common cifs code later when the new smb2 files are
reviewed/complete. It complicates the preparatory cifs cleanup
slightly but is ok.
--
Thanks,
Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-23 18:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-22 11:04 [PATCH] cifs: remove unused SMB2 config and mount options Christoph Hellwig
[not found] ` <20110522110451.GA14262-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2011-05-23 18:14 ` Steve French
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox