Browse Source

[GFS2] Remove remains of the GFS2 identify ioctl()

We don't need this ioctl, we can use stat() to gain the same
information.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
David Teigland 19 years ago
parent
commit
c73530a1f9
1 changed files with 0 additions and 7 deletions
  1. 0 7
      fs/gfs2/ops_file.c

+ 0 - 7
fs/gfs2/ops_file.c

@@ -1214,16 +1214,9 @@ static int gfs2_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
 	atomic_inc(&ip->i_sbd->sd_ops_file);
 
 	switch (cmd) {
-	case GFS2_IOCTL_IDENTIFY: {
-		unsigned int x = GFS2_MAGIC;
-		if (copy_to_user((unsigned int __user *)arg, &x, sizeof(unsigned int)))
-			return -EFAULT;
-		return 0;
-
 	case GFS2_IOCTL_SETFLAGS:
 	case GFS2_IOCTL_GETFLAGS:
 		return gfs2_ioctl_flags(ip, cmd, arg);
-	}
 
 	default:
 		return -ENOTTY;