Fix for VMS 5.5-2 for incorrect Inquiry command allocation lengths
[SCSI2SD.git] / software / scsi2sd-util / ConfigUtil.cc
index a11f1fc..f08fa3c 100755 (executable)
@@ -251,6 +251,7 @@ ConfigUtil::toXML(const TargetConfig& config)
                "       apple\t\tReturns Apple-specific mode pages\n" <<
                "       omti\t\tOMTI host non-standard link control\n" <<
                "       xebec\t\tXEBEC ignore step options in control byte\n" <<
+               "       vms\t\tVMS output max 254 bytes inquiry data\n" <<
                "       ********************************************************* -->\n" <<
                "       <quirks>";
        if (config.quirks == CONFIG_QUIRKS_APPLE)
@@ -265,6 +266,10 @@ ConfigUtil::toXML(const TargetConfig& config)
        {
                s << "xebec";
        }
+       else if (config.quirks == CONFIG_QUIRKS_VMS)
+       {
+               s << "vms";
+       }
 
        s <<
                        "</quirks>\n" <<
@@ -527,6 +532,10 @@ parseTarget(wxXmlNode* node)
                                {
                                        result.quirks |= CONFIG_QUIRKS_XEBEC;
                                }
+                               else if (quirk == "vms")
+                               {
+                                       result.quirks |= CONFIG_QUIRKS_VMS;
+                               }
                        }
                }
                else if (child->GetName() == "deviceType")