Skip to content

Commit

Permalink
[GFS2] Remove remains of the GFS2 identify ioctl()
Browse files Browse the repository at this point in the history
We don't need this ioctl, we can use stat() to gain the same
information.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
David Teigland authored and Steven Whitehouse committed Jan 18, 2006
1 parent 5ddec5b commit c73530a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions fs/gfs2/ops_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c73530a

Please sign in to comment.