diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-02-05 17:22:58 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 17:37:15 -0500 |
commit | c773633916c66f8362ca01983d97bd33e35b743f (patch) | |
tree | 4c3da7d614c530d851db6b3c6bcc3d85519feeb3 | |
parent | 9692bd9c140618e3f6a2848900aee96c9cd8a65c (diff) |
deprecate smbfs in favour of cifs
smbfs is a bit buggy and has no maintainer. Change it to shout at the user on
the first five mount attempts - tell them to switch to CIFS.
Come December we'll mark it BROKEN and see what happens.
[olecom@flower.upol.cz: documentation update]
Cc: Urban Widmark <urban@teststation.com>
Acked-by: Steven French <sfrench@us.ibm.com>
Signed-off-by: Oleg Verych <olecom@flower.upol.cz>
Cc: Jeff Layton <jlayton@redhat.com>
Cc: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/Kconfig | 28 | ||||
-rw-r--r-- | fs/smbfs/inode.c | 7 |
2 files changed, 21 insertions, 14 deletions
diff --git a/fs/Kconfig b/fs/Kconfig index 987b5d7cb21a..ea5b35947623 100644 --- a/fs/Kconfig +++ b/fs/Kconfig | |||
@@ -1152,7 +1152,7 @@ config BEFS_DEBUG | |||
1152 | depends on BEFS_FS | 1152 | depends on BEFS_FS |
1153 | help | 1153 | help |
1154 | If you say Y here, you can use the 'debug' mount option to enable | 1154 | If you say Y here, you can use the 'debug' mount option to enable |
1155 | debugging output from the driver. | 1155 | debugging output from the driver. |
1156 | 1156 | ||
1157 | config BFS_FS | 1157 | config BFS_FS |
1158 | tristate "BFS file system support (EXPERIMENTAL)" | 1158 | tristate "BFS file system support (EXPERIMENTAL)" |
@@ -1263,7 +1263,7 @@ config JFFS2_FS_XATTR | |||
1263 | Extended attributes are name:value pairs associated with inodes by | 1263 | Extended attributes are name:value pairs associated with inodes by |
1264 | the kernel or by users (see the attr(5) manual page, or visit | 1264 | the kernel or by users (see the attr(5) manual page, or visit |
1265 | <http://acl.bestbits.at/> for details). | 1265 | <http://acl.bestbits.at/> for details). |
1266 | 1266 | ||
1267 | If unsure, say N. | 1267 | If unsure, say N. |
1268 | 1268 | ||
1269 | config JFFS2_FS_POSIX_ACL | 1269 | config JFFS2_FS_POSIX_ACL |
@@ -1274,10 +1274,10 @@ config JFFS2_FS_POSIX_ACL | |||
1274 | help | 1274 | help |
1275 | Posix Access Control Lists (ACLs) support permissions for users and | 1275 | Posix Access Control Lists (ACLs) support permissions for users and |
1276 | groups beyond the owner/group/world scheme. | 1276 | groups beyond the owner/group/world scheme. |
1277 | 1277 | ||
1278 | To learn more about Access Control Lists, visit the Posix ACLs for | 1278 | To learn more about Access Control Lists, visit the Posix ACLs for |
1279 | Linux website <http://acl.bestbits.at/>. | 1279 | Linux website <http://acl.bestbits.at/>. |
1280 | 1280 | ||
1281 | If you don't know what Access Control Lists are, say N | 1281 | If you don't know what Access Control Lists are, say N |
1282 | 1282 | ||
1283 | config JFFS2_FS_SECURITY | 1283 | config JFFS2_FS_SECURITY |
@@ -1289,7 +1289,7 @@ config JFFS2_FS_SECURITY | |||
1289 | implemented by security modules like SELinux. This option | 1289 | implemented by security modules like SELinux. This option |
1290 | enables an extended attribute handler for file security | 1290 | enables an extended attribute handler for file security |
1291 | labels in the jffs2 filesystem. | 1291 | labels in the jffs2 filesystem. |
1292 | 1292 | ||
1293 | If you are not using a security module that requires using | 1293 | If you are not using a security module that requires using |
1294 | extended attributes for file security labels, say N. | 1294 | extended attributes for file security labels, say N. |
1295 | 1295 | ||
@@ -1835,7 +1835,7 @@ config RPCSEC_GSS_SPKM3 | |||
1835 | If unsure, say N. | 1835 | If unsure, say N. |
1836 | 1836 | ||
1837 | config SMB_FS | 1837 | config SMB_FS |
1838 | tristate "SMB file system support (to mount Windows shares etc.)" | 1838 | tristate "SMB file system support (OBSOLETE, please use CIFS)" |
1839 | depends on INET | 1839 | depends on INET |
1840 | select NLS | 1840 | select NLS |
1841 | help | 1841 | help |
@@ -1858,8 +1858,8 @@ config SMB_FS | |||
1858 | General information about how to connect Linux, Windows machines and | 1858 | General information about how to connect Linux, Windows machines and |
1859 | Macs is on the WWW at <http://www.eats.com/linux_mac_win.html>. | 1859 | Macs is on the WWW at <http://www.eats.com/linux_mac_win.html>. |
1860 | 1860 | ||
1861 | To compile the SMB support as a module, choose M here: the module will | 1861 | To compile the SMB support as a module, choose M here: |
1862 | be called smbfs. Most people say N, however. | 1862 | the module will be called smbfs. Most people say N, however. |
1863 | 1863 | ||
1864 | config SMB_NLS_DEFAULT | 1864 | config SMB_NLS_DEFAULT |
1865 | bool "Use a default NLS" | 1865 | bool "Use a default NLS" |
@@ -1891,7 +1891,7 @@ config SMB_NLS_REMOTE | |||
1891 | smbmount from samba 2.2.0 or later supports this. | 1891 | smbmount from samba 2.2.0 or later supports this. |
1892 | 1892 | ||
1893 | config CIFS | 1893 | config CIFS |
1894 | tristate "CIFS support (advanced network filesystem for Samba, Window and other CIFS compliant servers)" | 1894 | tristate "CIFS support (advanced network filesystem, SMBFS successor)" |
1895 | depends on INET | 1895 | depends on INET |
1896 | select NLS | 1896 | select NLS |
1897 | help | 1897 | help |
@@ -1949,16 +1949,16 @@ config CIFS_WEAK_PW_HASH | |||
1949 | LANMAN based servers such as OS/2 and Windows 95, but such | 1949 | LANMAN based servers such as OS/2 and Windows 95, but such |
1950 | mounts may be less secure than mounts using NTLM or more recent | 1950 | mounts may be less secure than mounts using NTLM or more recent |
1951 | security mechanisms if you are on a public network. Unless you | 1951 | security mechanisms if you are on a public network. Unless you |
1952 | have a need to access old SMB servers (and are on a private | 1952 | have a need to access old SMB servers (and are on a private |
1953 | network) you probably want to say N. Even if this support | 1953 | network) you probably want to say N. Even if this support |
1954 | is enabled in the kernel build, LANMAN authentication will not be | 1954 | is enabled in the kernel build, LANMAN authentication will not be |
1955 | used automatically. At runtime LANMAN mounts are disabled but | 1955 | used automatically. At runtime LANMAN mounts are disabled but |
1956 | can be set to required (or optional) either in | 1956 | can be set to required (or optional) either in |
1957 | /proc/fs/cifs (see fs/cifs/README for more detail) or via an | 1957 | /proc/fs/cifs (see fs/cifs/README for more detail) or via an |
1958 | option on the mount command. This support is disabled by | 1958 | option on the mount command. This support is disabled by |
1959 | default in order to reduce the possibility of a downgrade | 1959 | default in order to reduce the possibility of a downgrade |
1960 | attack. | 1960 | attack. |
1961 | 1961 | ||
1962 | If unsure, say N. | 1962 | If unsure, say N. |
1963 | 1963 | ||
1964 | config CIFS_XATTR | 1964 | config CIFS_XATTR |
@@ -1999,7 +1999,7 @@ config CIFS_DEBUG2 | |||
1999 | messages in some error paths, slowing performance. This | 1999 | messages in some error paths, slowing performance. This |
2000 | option can be turned off unless you are debugging | 2000 | option can be turned off unless you are debugging |
2001 | cifs problems. If unsure, say N. | 2001 | cifs problems. If unsure, say N. |
2002 | 2002 | ||
2003 | config CIFS_EXPERIMENTAL | 2003 | config CIFS_EXPERIMENTAL |
2004 | bool "CIFS Experimental Features (EXPERIMENTAL)" | 2004 | bool "CIFS Experimental Features (EXPERIMENTAL)" |
2005 | depends on CIFS && EXPERIMENTAL | 2005 | depends on CIFS && EXPERIMENTAL |
@@ -2090,7 +2090,7 @@ config CODA_FS_OLD_API | |||
2090 | However this new API is not backward compatible with older | 2090 | However this new API is not backward compatible with older |
2091 | clients. If you really need to run the old Coda userspace | 2091 | clients. If you really need to run the old Coda userspace |
2092 | cache manager then say Y. | 2092 | cache manager then say Y. |
2093 | 2093 | ||
2094 | For most cases you probably want to say N. | 2094 | For most cases you probably want to say N. |
2095 | 2095 | ||
2096 | config AFS_FS | 2096 | config AFS_FS |
diff --git a/fs/smbfs/inode.c b/fs/smbfs/inode.c index 9416ead0c7aa..4e5c22ca802e 100644 --- a/fs/smbfs/inode.c +++ b/fs/smbfs/inode.c | |||
@@ -500,6 +500,13 @@ static int smb_fill_super(struct super_block *sb, void *raw_data, int silent) | |||
500 | struct smb_fattr root; | 500 | struct smb_fattr root; |
501 | int ver; | 501 | int ver; |
502 | void *mem; | 502 | void *mem; |
503 | static int warn_count; | ||
504 | |||
505 | if (warn_count < 5) { | ||
506 | warn_count++; | ||
507 | printk(KERN_EMERG "smbfs is deprecated and will be removed" | ||
508 | "from the 2.6.27 kernel. Please migrate to cifs\n"); | ||
509 | } | ||
503 | 510 | ||
504 | if (!raw_data) | 511 | if (!raw_data) |
505 | goto out_no_data; | 512 | goto out_no_data; |