Skip to content

Commit

Permalink
block: provide compat ioctl for BLKZEROOUT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mikulas Patocka authored and axboe committed Jul 14, 2014
1 parent 0b462c8 commit 3b3a181
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions block/compat_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
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
Expand Down

0 comments on commit 3b3a181

Please sign in to comment.