Skip to content

Commit 9fea4b3

Browse files
Evan Greenaxboe
authored andcommitted
loop: Add LOOP_SET_BLOCK_SIZE in compat ioctl
This change adds LOOP_SET_BLOCK_SIZE as one of the supported ioctls in lo_compat_ioctl. It only takes an unsigned long argument, and in practice a 32-bit value works fine. Reviewed-by: Omar Sandoval <[email protected]> Signed-off-by: Evan Green <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 64dafbc commit 9fea4b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/block/loop.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,6 +1612,7 @@ static int lo_compat_ioctl(struct block_device *bdev, fmode_t mode,
16121612
arg = (unsigned long) compat_ptr(arg);
16131613
case LOOP_SET_FD:
16141614
case LOOP_CHANGE_FD:
1615+
case LOOP_SET_BLOCK_SIZE:
16151616
err = lo_ioctl(bdev, mode, cmd, arg);
16161617
break;
16171618
default:

0 commit comments

Comments
 (0)