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 <[email protected]>
Cc: [email protected]      # 3.7+

---
 block/compat_ioctl.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-3.16-rc3/block/compat_ioctl.c
===================================================================
--- linux-3.16-rc3.orig/block/compat_ioctl.c    2014-07-02 18:19:02.000000000 
+0200
+++ linux-3.16-rc3/block/compat_ioctl.c 2014-07-02 18:19:37.000000000 +0200
@@ -690,6 +690,7 @@ long compat_blkdev_ioctl(struct file *fi
        case BLKROSET:
        case BLKDISCARD:
        case BLKSECDISCARD:
+       case BLKZEROOUT:
        /*
         * the ones below are implemented in blkdev_locked_ioctl,
         * but we call blkdev_ioctl, which gets the lock for us
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to