Browse Source

block: provide compat ioctl for BLKZEROOUT

This patch provides the compat BLKZEROOUT ioctl. The argument is a pointer
to two uint64_t values, so there is no need to translate it.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org	# 3.7+
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Mikulas Patocka 11 years ago
parent
commit
3b3a1814d1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      block/compat_ioctl.c

+ 1 - 0
block/compat_ioctl.c

@@ -690,6 +690,7 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
 	case BLKROSET:
 	case BLKROSET:
 	case BLKDISCARD:
 	case BLKDISCARD:
 	case BLKSECDISCARD:
 	case BLKSECDISCARD:
+	case BLKZEROOUT:
 	/*
 	/*
 	 * the ones below are implemented in blkdev_locked_ioctl,
 	 * the ones below are implemented in blkdev_locked_ioctl,
 	 * but we call blkdev_ioctl, which gets the lock for us
 	 * but we call blkdev_ioctl, which gets the lock for us