Skip to content

Commit be8e936

Browse files
Mikulas PatockaJiri Slaby
authored andcommitted
block: provide compat ioctl for BLKZEROOUT
commit 3b3a181 upstream. 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> Acked-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <axboe@fb.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
1 parent aa0bb3b commit be8e936

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎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)