Skip to contentSkip to conversation

the scheduled smbfs removal

PATCH In review Adrian Bunk 4 participants 4 messages May 19, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 the scheduled smbfs removal

This patch contains the scheduled smbfs removal.

---

 Documentation/filesystems/00-INDEX  |    2 
 Documentation/filesystems/cifs.txt  |    8 
 Documentation/filesystems/smbfs.txt |    8 
 Documentation/highuid.txt           |    1 
 fs/Kconfig                          |   56 
 fs/Makefile                         |    1 
 fs/compat.c                         |   32 
 fs/compat_ioctl.c                   |   24 
 fs/smbfs/Makefile                   |   18 
 fs/smbfs/cache.c                    |  209 -
 fs/smbfs/dir.c                      |  702 -----
 fs/smbfs/file.c                     |  445 ---
 fs/smbfs/getopt.c                   |   64 
 fs/smbfs/getopt.h                   |   14 
 fs/smbfs/inode.c                    |  835 ------
 fs/smbfs/ioctl.c                    |   67 
 fs/smbfs/proc.c                     | 3508 ----------------------------
 fs/smbfs/proto.h                    |   87 
 fs/smbfs/request.c                  |  818 ------
 fs/smbfs/request.h                  |   70 
 fs/smbfs/smb_debug.h                |   34 
 fs/smbfs/smbiod.c                   |  345 --
 fs/smbfs/sock.c                     |  386 ---
 fs/smbfs/symlink.c                  |   68 
 include/linux/Kbuild                |    4 
 include/linux/smb.h                 |  116 
 include/linux/smb_fs.h              |  158 -
 include/linux/smb_fs_i.h            |   37 
 include/linux/smb_fs_sb.h           |   97 
 include/linux/smb_mount.h           |   65 
 include/linux/smbno.h               |  363 --
 31 files changed, 2 insertions(+), 8640 deletions(-)

ec26a6596f8e753368aad339bea0f586700375f5 diff --git a/Documentation/filesystems/00-INDEX b/Documentation/filesystems/00-INDEX index 52cd611..df60156 100644

Documentation/filesystems/00-INDEX +0 -2
@@ -90,8 +90,6 @@ seq_file.txt
 	- how to use the seq_file API
 sharedsubtree.txt
 	- a description of shared subtrees for namespaces.
-smbfs.txt
-	- info on using filesystems with the SMB protocol (Win 3.11 and NT).
 spufs.txt
 	- info and mount options for the SPU filesystem used on Cell.
 sysfs-pci.txt
Documentation/filesystems/cifs.txt +1 -7
index 49cc923..28a1e50 100644
@@ -6,13 +6,7 @@
   Windows XP) as well by Samba (which provides excellent CIFS
   server support for Linux and many other operating systems), so
   this network filesystem client can mount to a wide variety of
-  servers.  The smbfs module should be used instead of this cifs module
-  for mounting to older SMB servers such as OS/2.  The smbfs and cifs
-  modules can coexist and do not conflict.  The CIFS VFS filesystem
-  module is designed to work well with servers that implement the
-  newer versions (dialects) of the SMB/CIFS protocol such as Samba, 
-  the program written by Andrew Tridgell that turns any Unix host 
-  into a SMB/CIFS file server.
+  servers.
 
   The intent of this module is to provide the most advanced network
   file system function for CIFS compliant servers, including better
Documentation/filesystems/smbfs.txt deleted +0 -8
deleted file mode 100644
index f673ef0..0000000
@@ -1,8 +0,0 @@
-Smbfs is a filesystem that implements the SMB protocol, which is the
-protocol used by Windows for Workgroups, Windows 95 and Windows NT.
-Smbfs was inspired by Samba, the program written by Andrew Tridgell
-that turns any Unix host into a file server for DOS or Windows clients.
-
-Smbfs is a SMB client, but uses parts of samba for it's operation. For
-more info on samba, including documentation, please go to
-http://www.samba.org/ and then on to your nearest mirror.
Documentation/highuid.txt +0 -1
index 6bad6f1..2863c81 100644
@@ -46,7 +46,6 @@ What's left to be done for 32-bit UIDs on all Linux architectures:
 
   Ioctl() fixups have been made for:
 	ncpfs
-	smbfs
 
   Filesystems with simple fixups to prevent 16-bit UID wraparound:
 	minix
fs/Kconfig +0 -56

62 lines not on this page · raw message

fs/Makefile +0 -1
index 1e7a11b..dfad8a6 100644
@@ -92,7 +92,6 @@ obj-$(CONFIG_NFSD)		+= nfsd/
 obj-$(CONFIG_LOCKD)		+= lockd/
 obj-$(CONFIG_NLS)		+= nls/
 obj-$(CONFIG_SYSV_FS)		+= sysv/
-obj-$(CONFIG_SMB_FS)		+= smbfs/
 obj-$(CONFIG_CIFS)		+= cifs/
 obj-$(CONFIG_NCP_FS)		+= ncpfs/
 obj-$(CONFIG_HPFS_FS)		+= hpfs/
fs/compat.c +1 -31
index 332a869..fc62144 100644
@@ -28,8 +28,6 @@
 #include <linux/vfs.h>
 #include <linux/ioctl.h>
 #include <linux/init.h>
-#include <linux/smb.h>
-#include <linux/smb_mount.h>
 #include <linux/ncp_mount.h>
 #include <linux/nfs4_mount.h>
 #include <linux/smp_lock.h>
@@ -617,31 +615,6 @@ static void *do_ncp_super_data_conv(void *raw_data)
 	return raw_data;
 }
 
-struct compat_smb_mount_data {
-	compat_int_t version;
-	__compat_uid_t mounted_uid;
-	__compat_uid_t uid;
-	__compat_gid_t gid;
-	compat_mode_t file_mode;
-	compat_mode_t dir_mode;
-};
-
-static void *do_smb_super_data_conv(void *raw_data)
-{
-	struct smb_mount_data *s = raw_data;
-	struct compat_smb_mount_data *c_s = raw_data;
-
-	if (c_s->version != SMB_MOUNT_OLDVERSION)
-		goto out;
-	s->dir_mode = c_s->dir_mode;
-	s->file_mode = c_s->file_mode;
-	s->gid = c_s->gid;
-	s->uid = c_s->uid;
-	s->mounted_uid = c_s->mounted_uid;
- out:
-	return raw_data;
-}
-
 struct compat_nfs_string {
 	compat_uint_t len;
 	compat_uptr_t data;
@@ -707,7 +680,6 @@ static int do_nfs4_super_data_conv(void *raw_data)
 	return 0;
 }
 
-#define SMBFS_NAME      "smbfs"
 #define NCPFS_NAME      "ncpfs"
 #define NFS4_NAME	"nfs4"
 
@@ -741,9 +713,7 @@ asmlinkage long compat_sys_mount(char __user * dev_name, char __user * dir_name,
 	retval = -EINVAL;
 
 	if (type_page && data_page) {
-		if (!strcmp((char *)type_page, SMBFS_NAME)) {
-			do_smb_super_data_conv((void *)data_page);
-		} else if (!strcmp((char *)type_page, NCPFS_NAME)) {
+		if (!strcmp((char *)type_page, NCPFS_NAME)) {
 			do_ncp_super_data_conv((void *)data_page);
 		} else if (!strcmp((char *)type_page, NFS4_NAME)) {
 			if (do_nfs4_super_data_conv((void *) data_page))
fs/compat_ioctl.c +0 -24
index 97dba0d..08e1ea1 100644
@@ -46,7 +46,6 @@
 #include <linux/videodev.h>
 #include <linux/netdevice.h>
 #include <linux/raw.h>
-#include <linux/smb_fs.h>
 #include <linux/blkdev.h>
 #include <linux/elevator.h>
 #include <linux/rtc.h>
@@ -1193,24 +1192,6 @@ static int do_unimap_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg,
 
 #endif /* CONFIG_VT */
 
-static int do_smb_getmountuid(unsigned int fd, unsigned int cmd, unsigned long arg)
-{
-	mm_segment_t old_fs = get_fs();
-	__kernel_uid_t kuid;
-	int err;
-
-	cmd = SMB_IOC_GETMOUNTUID;
-
-	set_fs(KERNEL_DS);
-	err = sys_ioctl(fd, cmd, (unsigned long)&kuid);
-	set_fs(old_fs);
-
-	if (err >= 0)
-		err = put_user(kuid, (compat_uid_t __user *)compat_ptr(arg));
-
-	return err;
-}
-
 struct atmif_sioc32 {
         compat_int_t	number;
         compat_int_t	length;
@@ -2356,8 +2337,6 @@ COMPATIBLE_IOCTL(AUTOFS_IOC_ASKUMOUNT)
 /* Raw devices */
 COMPATIBLE_IOCTL(RAW_SETBIND)
 COMPATIBLE_IOCTL(RAW_GETBIND)
-/* SMB ioctls which do not need any translations */
-COMPATIBLE_IOCTL(SMB_IOC_NEWCONN)
 /* Little a */
 COMPATIBLE_IOCTL(ATMSIGD_CTRL)
 COMPATIBLE_IOCTL(ATMARPD_CTRL)
@@ -2695,9 +2674,6 @@ HANDLE_IOCTL(PIO_UNIMAP, do_unimap_ioctl)
 HANDLE_IOCTL(GIO_UNIMAP, do_unimap_ioctl)
 HANDLE_IOCTL(KDFONTOP, do_kdfontop_ioctl)
 #endif
-/* One SMB ioctl needs translations. */
-#define SMB_IOC_GETMOUNTUID_32 _IOR('u', 1, compat_uid_t)
-HANDLE_IOCTL(SMB_IOC_GETMOUNTUID_32, do_smb_getmountuid)
 HANDLE_IOCTL(ATM_GETLINKRATE32, do_atm_ioctl)
 HANDLE_IOCTL(ATM_GETNAMES32, do_atm_ioctl)
 HANDLE_IOCTL(ATM_GETTYPE32, do_atm_ioctl)
fs/smbfs/Makefile deleted +0 -18
deleted file mode 100644
index 4faf8c4..0000000
@@ -1,18 +0,0 @@
-#
-# Makefile for the linux smb-filesystem routines.
-#
-
-obj-$(CONFIG_SMB_FS) += smbfs.o
-
-smbfs-objs := proc.o dir.o cache.o sock.o inode.o file.o ioctl.o getopt.o \
-		symlink.o smbiod.o request.o
-
-# If you want debugging output, you may add these flags to the EXTRA_CFLAGS
-# SMBFS_PARANOIA should normally be enabled.
-
-EXTRA_CFLAGS += -DSMBFS_PARANOIA
-#EXTRA_CFLAGS += -DSMBFS_DEBUG
-#EXTRA_CFLAGS += -DSMBFS_DEBUG_VERBOSE
-#EXTRA_CFLAGS += -DDEBUG_SMB_TIMESTAMP
-#EXTRA_CFLAGS += -Werror
-
fs/smbfs/cache.c deleted +0 -209

209 lines not on this page · raw message

fs/smbfs/dir.c deleted +0 -702

702 lines not on this page · raw message

fs/smbfs/file.c deleted +0 -445

445 lines not on this page · raw message

fs/smbfs/getopt.c deleted +0 -64

64 lines not on this page · raw message

fs/smbfs/getopt.h deleted +0 -14
deleted file mode 100644
index 146219a..0000000
@@ -1,14 +0,0 @@
-#ifndef _LINUX_GETOPT_H
-#define _LINUX_GETOPT_H
-
-struct option {
-	const char *name;
-	unsigned long flag;
-	int val;
-};
-
-extern int smb_getopt(char *caller, char **options, struct option *opts,
-		      char **optopt, char **optarg, unsigned long *flag,
-		      unsigned long *value);
-
-#endif /* _LINUX_GETOPT_H */
fs/smbfs/inode.c deleted +0 -835

835 lines not on this page · raw message

fs/smbfs/ioctl.c deleted +0 -67

67 lines not on this page · raw message

fs/smbfs/proc.c deleted +0 -3508

436 lines not on this page · raw message

fs/smbfs/proto.h deleted +0 -87

87 lines not on this page · raw message

fs/smbfs/request.c deleted +0 -818

818 lines not on this page · raw message

fs/smbfs/request.h deleted +0 -70

70 lines not on this page · raw message

fs/smbfs/smb_debug.h deleted +0 -34
deleted file mode 100644
index fc4b1a5..0000000

Lines of this file are not shown. View the raw message.

fs/smbfs/smbiod.c deleted +0 -345

345 lines not on this page · raw message

fs/smbfs/sock.c deleted +0 -386

386 lines not on this page · raw message

fs/smbfs/symlink.c deleted +0 -68

68 lines not on this page · raw message

include/linux/Kbuild +0 -4
index b7d81b2..dfd8dde 100644

Lines of this file are not shown. View the raw message.

include/linux/smb.h deleted +0 -116

116 lines not on this page · raw message

include/linux/smb_fs.h deleted +0 -158

158 lines not on this page · raw message

include/linux/smb_fs_i.h deleted +0 -37
deleted file mode 100644
index 8ccf4ec..0000000

Lines of this file are not shown. View the raw message.

include/linux/smb_fs_sb.h deleted +0 -97

97 lines not on this page · raw message

include/linux/smb_mount.h deleted +0 -65

65 lines not on this page · raw message

include/linux/smbno.h deleted +0 -363

363 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.

#1 lore raw
Quoted 1 line · On Tue, 20 May 2008 00:53:11 +0300 Adrian Bunk <[email protected]> wrote:

This patch contains the scheduled smbfs removal.

I don't know how popular this will be right now - quite a few people needed to be dragged over to cifs up to a month or two ago.

I'd suggest that we first use CONFIG_BROKEN or CONFIG_DIFFICULT_TO_GET_AT and see what the effect of that is.

#2 lore raw

FYI - last week at connectathon I added one patch relating to backlevel support and mapping of open flags on legacy smb open calls (although perhaps some longtime smbfs users would not notice since smbfs did not have this support either).

The utimes support for backlevel servers is one obvious thing that I have not added (but smbfs had some limited support for) but was considring adding.

Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: sfrench at-sign us dot ibm dot com

Andrew Morton <[email protected]> wrote on 05/19/2008 05:32:49 PM:

Quoted 12 lines
Quoted 1 line · On Tue, 20 May 2008 00:53:11 +0300 Adrian Bunk <[email protected]> wrote:

This patch contains the scheduled smbfs removal.

I don't know how popular this will be right now - quite a few people needed to be dragged over to cifs up to a month or two ago.

I'd suggest that we first use CONFIG_BROKEN or CONFIG_DIFFICULT_TO_GET_AT and see what the effect of that is.

#3 lore raw
Quoted 9 lines · Steven French

FYI - last week at connectathon I added one patch relating to backlevel support and mapping of open flags on legacy smb open calls (although perhaps some longtime smbfs users would not notice since smbfs did not have this support either).

The utimes support for backlevel servers is one obvious thing that I have not added (but smbfs had some limited support for) but was considring adding.

Just curious if there was a shortlist somewhere of anything supported in smbfs but not in cifs?

Harvey