Skip to contentSkip to conversation

cifs: remove support for CIFS_IOC_CHECKUMOUNT ioctl

PATCH In review Jeff Layton 2 participants 2 messages Sep 5, 2012 – Sep 6, 2012 1 message not in the archive

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

PATCH 1/1 cifs: remove support for CIFS_IOC_CHECKUMOUNT ioctl

...as promised for 3.7.

---
 fs/cifs/ioctl.c | 19 -------------------
 1 file changed, 19 deletions(-)
fs/cifs/ioctl.c +0 -19
index 5b3481b..fd5009d 100644
@@ -28,8 +28,6 @@
 #include "cifs_debug.h"
 #include "cifsfs.h"
 
-#define CIFS_IOC_CHECKUMOUNT _IO(0xCF, 2)
-
 long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
 {
 	struct inode *inode = filep->f_dentry->d_inode;
@@ -51,23 +49,6 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
 	cifs_sb = CIFS_SB(inode->i_sb);
 
 	switch (command) {
-		static bool warned = false;
-		case CIFS_IOC_CHECKUMOUNT:
-			if (!warned) {
-				warned = true;
-				cERROR(1, "the CIFS_IOC_CHECKMOUNT ioctl will "
-					  "be deprecated in 3.7. Please "
-					  "migrate away from the use of "
-					  "umount.cifs");
-			}
-			cFYI(1, "User unmount attempted");
-			if (cifs_sb->mnt_uid == current_uid())
-				rc = 0;
-			else {
-				rc = -EACCES;
-				cFYI(1, "uids do not match");
-			}
-			break;
 #ifdef CONFIG_CIFS_POSIX
 		case FS_IOC_GETFLAGS:
 			if (pSMBFile == NULL)
Signature · 1 line
1.7.11.4
Reviewed-by
#2 lore raw
In reply to a message not in the archive

2012/9/5 Jeff Layton <[email protected]>:

Quoted 45 lines

...as promised for 3.7.

---
 fs/cifs/ioctl.c | 19 -------------------
 1 file changed, 19 deletions(-)
fs/cifs/ioctl.c +0 -20
index 5b3481b..fd5009d 100644
@@ -28,8 +28,6 @@
 #include "cifs_debug.h"
 #include "cifsfs.h"
 
-#define CIFS_IOC_CHECKUMOUNT _IO(0xCF, 2)
-
 long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
 {
        struct inode *inode = filep->f_dentry->d_inode;
@@ -51,23 +49,6 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
        cifs_sb = CIFS_SB(inode->i_sb);
 
        switch (command) {
-               static bool warned = false;
-               case CIFS_IOC_CHECKUMOUNT:
-                       if (!warned) {
-                               warned = true;
-                               cERROR(1, "the CIFS_IOC_CHECKMOUNT ioctl will "
-                                         "be deprecated in 3.7. Please "
-                                         "migrate away from the use of "
-                                         "umount.cifs");
-                       }
-                       cFYI(1, "User unmount attempted");
-                       if (cifs_sb->mnt_uid == current_uid())
-                               rc = 0;
-                       else {
-                               rc = -EACCES;
-                               cFYI(1, "uids do not match");
-                       }
-                       break;
 #ifdef CONFIG_CIFS_POSIX
                case FS_IOC_GETFLAGS:
                        if (pSMBFile == NULL)
--
Quoted 2 lines

1.7.11.4

Signature · 2 lines
Best regards,
Pavel Shilovsky.