diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-09-19 18:20:27 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:35 -0400 |
commit | 52b0c3427e5baf14f1ffb92cf8ae542160ec6a07 (patch) | |
tree | 8c2f5eb5ce188bbb3a901a5e0d208c575544b953 /fs/cifs | |
parent | e5d04887196ee30423c79e52043d418e04012954 (diff) |
cifs: remove support for CIFS_IOC_CHECKUMOUNT ioctl
...as promised for 3.7.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/ioctl.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c index 5b3481bd3d9..fd5009d56f9 100644 --- a/fs/cifs/ioctl.c +++ b/fs/cifs/ioctl.c | |||
@@ -28,8 +28,6 @@ | |||
28 | #include "cifs_debug.h" | 28 | #include "cifs_debug.h" |
29 | #include "cifsfs.h" | 29 | #include "cifsfs.h" |
30 | 30 | ||
31 | #define CIFS_IOC_CHECKUMOUNT _IO(0xCF, 2) | ||
32 | |||
33 | long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) | 31 | long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) |
34 | { | 32 | { |
35 | struct inode *inode = filep->f_dentry->d_inode; | 33 | struct inode *inode = filep->f_dentry->d_inode; |
@@ -51,23 +49,6 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) | |||
51 | cifs_sb = CIFS_SB(inode->i_sb); | 49 | cifs_sb = CIFS_SB(inode->i_sb); |
52 | 50 | ||
53 | switch (command) { | 51 | switch (command) { |
54 | static bool warned = false; | ||
55 | case CIFS_IOC_CHECKUMOUNT: | ||
56 | if (!warned) { | ||
57 | warned = true; | ||
58 | cERROR(1, "the CIFS_IOC_CHECKMOUNT ioctl will " | ||
59 | "be deprecated in 3.7. Please " | ||
60 | "migrate away from the use of " | ||
61 | "umount.cifs"); | ||
62 | } | ||
63 | cFYI(1, "User unmount attempted"); | ||
64 | if (cifs_sb->mnt_uid == current_uid()) | ||
65 | rc = 0; | ||
66 | else { | ||
67 | rc = -EACCES; | ||
68 | cFYI(1, "uids do not match"); | ||
69 | } | ||
70 | break; | ||
71 | #ifdef CONFIG_CIFS_POSIX | 52 | #ifdef CONFIG_CIFS_POSIX |
72 | case FS_IOC_GETFLAGS: | 53 | case FS_IOC_GETFLAGS: |
73 | if (pSMBFile == NULL) | 54 | if (pSMBFile == NULL) |