diff options
author | Hannes Reinecke <hare@suse.de> | 2017-06-08 13:46:45 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-06-08 16:40:00 +0200 |
commit | f2c6df7dbf9a60e1cd9941f9fb376d4d9ad1e8dd (patch) | |
tree | 79a9c0d9627fa253955532d6925e9606e1643f72 /drivers/block/loop.h | |
parent | loop: Remove unused 'bdev' argument from loop_set_capacity (diff) | |
download | linux-f2c6df7dbf9a60e1cd9941f9fb376d4d9ad1e8dd.tar.xz linux-f2c6df7dbf9a60e1cd9941f9fb376d4d9ad1e8dd.zip |
loop: support 4k physical blocksize
When generating bootable VM images certain systems (most notably
s390x) require devices with 4k blocksize. This patch implements
a new flag 'LO_FLAGS_BLOCKSIZE' which will set the physical
blocksize to that of the underlying device, and allow to change
the logical blocksize for up to the physical blocksize.
Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/loop.h')
-rw-r--r-- | drivers/block/loop.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/loop.h b/drivers/block/loop.h index fecd3f97ef8c..2c096b9a17b8 100644 --- a/drivers/block/loop.h +++ b/drivers/block/loop.h @@ -49,6 +49,7 @@ struct loop_device { struct file * lo_backing_file; struct block_device *lo_device; unsigned lo_blocksize; + unsigned lo_logical_blocksize; void *key_data; gfp_t old_gfp_mask; |