aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_iblock.h
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2012-06-07 10:38:51 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2012-07-16 17:29:11 -0700
commit44bfd0185043c9a92b2f20a4508dd6cd3bb84ded (patch)
tree9875dee43fb666614859f3b0c59aae9c6413db5e /drivers/target/target_core_iblock.h
parent7acd57070649da4ac3923f1d2075c084d83da1f4 (diff)
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.h1
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 */

Privacy Policy