]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/block/loop.c
loop: add ioctl for changing logical block size
authorOmar Sandoval <osandov@fb.com>
Thu, 24 Aug 2017 07:03:43 +0000 (00:03 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 Aug 2017 19:51:14 +0000 (13:51 -0600)
commit89e4fdecb51cf5535867026274bc97de9480ade5
treee0cbe2e118ea5ac8ff05a3bb8323d4142545335c
parent6c6b6f28b3335fd85ec833ee0005d9c9dca6c003
loop: add ioctl for changing logical block size

This is a different approach from the first attempt in f2c6df7dbf9a
("loop: support 4k physical blocksize"). Rather than extending
LOOP_{GET,SET}_STATUS, add a separate ioctl just for setting the block
size.

Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c
include/uapi/linux/loop.h