All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cifs: remove support for CIFS_IOC_CHECKUMOUNT ioctl
@ 2012-09-05 13:58 Jeff Layton
       [not found] ` <1346853509-13438-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Layton @ 2012-09-05 13:58 UTC (permalink / raw)
  To: smfrench-Re5JQEeQqe8AvxtiuMwx3w
  Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA, piastryyy-Re5JQEeQqe8AvxtiuMwx3w

...as promised for 3.7.

Signed-off-by: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
 fs/cifs/ioctl.c | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c
index 5b3481b..fd5009d 100644
--- a/fs/cifs/ioctl.c
+++ b/fs/cifs/ioctl.c
@@ -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)
-- 
1.7.11.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cifs: remove support for CIFS_IOC_CHECKUMOUNT ioctl
       [not found] ` <1346853509-13438-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-09-06 12:21   ` Pavel Shilovsky
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Shilovsky @ 2012-09-06 12:21 UTC (permalink / raw)
  To: Jeff Layton
  Cc: smfrench-Re5JQEeQqe8AvxtiuMwx3w, linux-cifs-u79uwXL29TY76Z2rM5mHXA

2012/9/5 Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>:
> ...as promised for 3.7.
>
> Signed-off-by: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
>  fs/cifs/ioctl.c | 19 -------------------
>  1 file changed, 19 deletions(-)
>
> diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c
> index 5b3481b..fd5009d 100644
> --- a/fs/cifs/ioctl.c
> +++ b/fs/cifs/ioctl.c
> @@ -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)
> --
> 1.7.11.4
>

Reviewed-by: Pavel Shilovsky <piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org>

-- 
Best regards,
Pavel Shilovsky.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-06 12:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-05 13:58 [PATCH] cifs: remove support for CIFS_IOC_CHECKUMOUNT ioctl Jeff Layton
     [not found] ` <1346853509-13438-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-09-06 12:21   ` Pavel Shilovsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.