diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-03-21 00:26:48 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-04-14 19:04:58 -0400 |
commit | 58d926187758f76647d68e2f51ce44e6ace81873 (patch) | |
tree | c877294c394ab14cbdeca4af1a3e7835d644f73b /include/target | |
parent | 0034102808e0dbbf3a2394b82b1bb40b5778de9e (diff) |
target: Remove obsolete DF_READ_ONLY usage
This was used at one time as a hack by FILEIO backend registration to
allow a struct block_device that was claimed with blkdev_get (by a local
filesystem mount for example) to be exported as read-only (SCSI WP=1).
Since FILEIO backend registration will no longer attempt to obtain
exclusive access to an underlying struct block_device here, this flag is
now obsolete.
Reported-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_base.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index aaccc5f5fc9f..edb51f6544f8 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -73,9 +73,8 @@ | |||
73 | /* | 73 | /* |
74 | * struct se_device->dev_flags | 74 | * struct se_device->dev_flags |
75 | */ | 75 | */ |
76 | #define DF_READ_ONLY 0x00000001 | 76 | #define DF_SPC2_RESERVATIONS 0x00000001 |
77 | #define DF_SPC2_RESERVATIONS 0x00000002 | 77 | #define DF_SPC2_RESERVATIONS_WITH_ISID 0x00000002 |
78 | #define DF_SPC2_RESERVATIONS_WITH_ISID 0x00000004 | ||
79 | 78 | ||
80 | /* struct se_dev_attrib sanity values */ | 79 | /* struct se_dev_attrib sanity values */ |
81 | /* Default max_unmap_lba_count */ | 80 | /* Default max_unmap_lba_count */ |