cifs: remove legacy MultiuserMount option
Subsystems (2)
PATCH 1/1 cifs: remove legacy MultiuserMount option
We've now warned about this for two releases. Remove it for 3.5.
Signed-off-by Jeff Layton <[email protected]>
--- fs/cifs/cifs_debug.c | 49 ------------------------------------------------- fs/cifs/cifsfs.c | 1 - fs/cifs/cifsglob.h | 7 +------ fs/cifs/misc.c | 47 ----------------------------------------------- 4 files changed, 1 insertions(+), 103 deletions(-)
fs/cifs/cifs_debug.c +0 -49
@@ -420,7 +420,6 @@ static struct proc_dir_entry *proc_fs_cifs;static const struct file_operations cifsFYI_proc_fops;static const struct file_operations cifs_lookup_cache_proc_fops;static const struct file_operations traceSMB_proc_fops; -static const struct file_operations cifs_multiuser_mount_proc_fops;static const struct file_operations cifs_security_flags_proc_fops;static const struct file_operations cifs_linux_ext_proc_fops;
@@ -440,8 +439,6 @@ cifs_proc_init(void)proc_create ("traceSMB" ,0 , proc_fs_cifs, &traceSMB_proc_fops);proc_create ("LinuxExtensionsEnabled" ,0 , proc_fs_cifs, &cifs_linux_ext_proc_fops); -proc_create ("MultiuserMount" ,0 , proc_fs_cifs, - &cifs_multiuser_mount_proc_fops);proc_create ("SecurityFlags" ,0 , proc_fs_cifs, &cifs_security_flags_proc_fops); proc_create("LookupCacheEnabled", 0, proc_fs_cifs,
@@ -617,52 +614,6 @@ static const struct file_operations traceSMB_proc_fops = { .write = traceSMB_proc_write, }; -static int cifs_multiuser_mount_proc_show (struct seq_file *m,void *v) -{ -seq_printf (m,"%d\n" , multiuser_mount); -return 0 ; -} - -static int cifs_multiuser_mount_proc_open (struct inode *inode,struct file *fh) -{ -return single_open (fh, cifs_multiuser_mount_proc_show,NULL ); -} - -static ssize_t cifs_multiuser_mount_proc_write (struct file *file, -const char __user *buffer,size_t count,loff_t *ppos) -{ -char c; -int rc; -static bool warned; - - rc =get_user (c, buffer); -if (rc) -return rc; -if (c =='0' || c =='n' || c =='N' ) - multiuser_mount =0 ; -else if (c =='1' || c =='y' || c =='Y' ) { - multiuser_mount =1 ; -if (!warned) { - warned = true; -printk (KERN_WARNING "CIFS VFS: The legacy multiuser " -"mount code is scheduled to be deprecated in " -"3.5. Please switch to using the multiuser " -"mount option." ); - } - } - -return count; -} - -static const struct file_operations cifs_multiuser_mount_proc_fops = { - .owner =THIS_MODULE , - .open = cifs_multiuser_mount_proc_open, - .read = seq_read, - .llseek = seq_lseek, - .release = single_release, - .write = cifs_multiuser_mount_proc_write, -}; -static int cifs_security_flags_proc_show (struct seq_file *m,void *v) {seq_printf (m,"0x%x\n" , global_secflags);
fs/cifs/cifsfs.c +0 -1
@@ -56,7 +56,6 @@ int traceSMB = 0;bool enable_oplocks = true;unsigned int linuxExtEnabled =1 ;unsigned int lookupCacheEnabled =1 ; -unsigned int multiuser_mount =0 ;unsigned int global_secflags =CIFSSEC_DEF ;/* unsigned int ntlmv2_support = 0; */ unsigned int sign_CIFS_PDUs =1 ;
fs/cifs/cifsglob.h +1 -6
@@ -1042,12 +1042,7 @@ GLOBAL_EXTERN atomic_t smBufAllocCount; GLOBAL_EXTERN atomic_t midCount;/* Misc globals */ -GLOBAL_EXTERN unsigned int multiuser_mount; /* if enabled allows new sessions -to be established on existing mount if we -have the uid/password or Kerberos credential -or equivalent for current user */ -/* enable or disable oplocks */ -GLOBAL_EXTERN bool enable_oplocks; +GLOBAL_EXTERN bool enable_oplocks; /* enable or disable oplocks */ GLOBAL_EXTERN unsigned int lookupCacheEnabled; GLOBAL_EXTERN unsigned int global_secflags; /* if on, session setup sentwith more secure ntlmssp2 challenge/resp */
fs/cifs/misc.c +0 -47
59 lines not on this page · raw message
Signature · 1 line
1.7.7.6