diff options
author | Andy Grover <agrover@redhat.com> | 2012-06-07 10:38:51 -0700 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-07-16 17:29:11 -0700 |
commit | 44bfd0185043c9a92b2f20a4508dd6cd3bb84ded (patch) | |
tree | 9875dee43fb666614859f3b0c59aae9c6413db5e /drivers/target/target_core_iblock.h | |
parent | 7acd57070649da4ac3923f1d2075c084d83da1f4 (diff) | |
download | linux-44bfd0185043c9a92b2f20a4508dd6cd3bb84ded.tar.gz linux-44bfd0185043c9a92b2f20a4508dd6cd3bb84ded.tar.bz2 linux-44bfd0185043c9a92b2f20a4508dd6cd3bb84ded.zip |
target/iblock: Add parameter to specify read-only devices
see https://bugzilla.redhat.com/show_bug.cgi?id=818855
Adds a parameter so read-only block devices may be registered as
LIO backstores.
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_iblock.h')
-rw-r--r-- | drivers/target/target_core_iblock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/target_core_iblock.h b/drivers/target/target_core_iblock.h index 66cf7b9e205e..533627ae79ec 100644 --- a/drivers/target/target_core_iblock.h +++ b/drivers/target/target_core_iblock.h @@ -18,6 +18,7 @@ struct iblock_dev { u32 ibd_flags; struct bio_set *ibd_bio_set; struct block_device *ibd_bd; + bool ibd_readonly; } ____cacheline_aligned; #endif /* TARGET_CORE_IBLOCK_H */ |