Commit c73530a1 authored by David Teigland's avatar David Teigland Committed by Steven Whitehouse

[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: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 5ddec5b3
...@@ -1214,16 +1214,9 @@ static int gfs2_ioctl(struct inode *inode, struct file *file, unsigned int cmd, ...@@ -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); atomic_inc(&ip->i_sbd->sd_ops_file);
switch (cmd) { 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_SETFLAGS:
case GFS2_IOCTL_GETFLAGS: case GFS2_IOCTL_GETFLAGS:
return gfs2_ioctl_flags(ip, cmd, arg); return gfs2_ioctl_flags(ip, cmd, arg);
}
default: default:
return -ENOTTY; return -ENOTTY;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment