Skip to content

Commit 3b3a181

Browse files
Mikulas Patockaaxboe
authored andcommitted
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 <[email protected]> Cc: [email protected] # 3.7+ Acked-by: Martin K. Petersen <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 0b462c8 commit 3b3a181

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

block/compat_ioctl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
690690
case BLKROSET:
691691
case BLKDISCARD:
692692
case BLKSECDISCARD:
693+
case BLKZEROOUT:
693694
/*
694695
* the ones below are implemented in blkdev_locked_ioctl,
695696
* but we call blkdev_ioctl, which gets the lock for us

0 commit comments

Comments
 (0)