mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
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>
This commit is contained in:
parent
e5d0488719
commit
52b0c3427e
1 changed files with 0 additions and 19 deletions
|
@ -28,8 +28,6 @@
|
||||||
#include "cifs_debug.h"
|
#include "cifs_debug.h"
|
||||||
#include "cifsfs.h"
|
#include "cifsfs.h"
|
||||||
|
|
||||||
#define CIFS_IOC_CHECKUMOUNT _IO(0xCF, 2)
|
|
||||||
|
|
||||||
long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
|
long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
|
||||||
{
|
{
|
||||||
struct inode *inode = filep->f_dentry->d_inode;
|
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);
|
cifs_sb = CIFS_SB(inode->i_sb);
|
||||||
|
|
||||||
switch (command) {
|
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
|
#ifdef CONFIG_CIFS_POSIX
|
||||||
case FS_IOC_GETFLAGS:
|
case FS_IOC_GETFLAGS:
|
||||||
if (pSMBFile == NULL)
|
if (pSMBFile == NULL)
|
||||||
|
|
Loading…
Reference in a new issue