]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - include/target/target_core_base.h
scsi: target: add emulate_pr backstore attr to toggle PR support
[mirror_ubuntu-jammy-kernel.git] / include / target / target_core_base.h
index e3bdb0550a596bb4c8b90614c267920ec9ac1972..c15054116b867baa888952730c933e254ddf83b9 100644 (file)
@@ -87,6 +87,8 @@
 #define DA_EMULATE_3PC                         1
 /* No Emulation for PSCSI by default */
 #define DA_EMULATE_ALUA                                0
+/* Emulate SCSI2 RESERVE/RELEASE and Persistent Reservations by default */
+#define DA_EMULATE_PR                          1
 /* Enforce SCSI Initiator Port TransportID with 'ISID' for PR */
 #define DA_ENFORCE_PR_ISIDS                    1
 /* Force SPC-3 PR Activate Persistence across Target Power Loss */
@@ -664,6 +666,7 @@ struct se_dev_attrib {
        int             emulate_tpws;
        int             emulate_caw;
        int             emulate_3pc;
+       int             emulate_pr;
        int             pi_prot_format;
        enum target_prot_type pi_prot_type;
        enum target_prot_type hw_pi_prot_type;