UPSTREAM: loop: add ioctl for changing logical block size
authorOmar Sandoval <osandov@fb.com>
Thu, 24 Aug 2017 07:03:43 +0000 (00:03 -0700)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:13:58 +0000 (21:13 +0000)
commit6c7b36732203d499cf69142d29c1145d87bbae32
tree7a29b84cef65132304c0ce52cfef1980646e6440
parenta09e8f64a05810197169c969083ef521de961746
UPSTREAM: 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.

Bug: 117823094
Change-Id: I8e69b8839d7fee3be564cbfce1797ce108e1aa1e
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>
(cherry picked from commit 89e4fdecb51cf5535867026274bc97de9480ade5)
Signed-off-by: Martijn Coenen <maco@android.com>
drivers/block/loop.c
include/uapi/linux/loop.h