summaryrefslogtreecommitdiffstats
path: root/drivers/block/loop.h
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2017-06-08 13:46:45 +0200
committerJens Axboe <axboe@fb.com>2017-06-08 08:40:00 -0600
commitf2c6df7dbf9a60e1cd9941f9fb376d4d9ad1e8dd (patch)
tree79a9c0d9627fa253955532d6925e9606e1643f72 /drivers/block/loop.h
parent51001b7da364a24ed2464f3c22179efdc6b3a960 (diff)
downloadtalos-obmc-linux-f2c6df7dbf9a60e1cd9941f9fb376d4d9ad1e8dd.tar.gz
talos-obmc-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.h1
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;
OpenPOWER on IntegriCloud