Ticket #1045: SAS_HM_support.patch

File SAS_HM_support.patch, 1.2 KB (added by chris, 6 years ago)
  • scsicmds.h

    diff -Naur smartmontools_original/scsicmds.h smartmontools_patched/scsicmds.h
    old new  
    184184#define SCSI_PT_CDROM                   0x5
    185185#define SCSI_PT_MEDIUM_CHANGER          0x8
    186186#define SCSI_PT_ENCLOSURE               0xd
     187#define SCSI_PT_HOST_MANAGED            0x14
    187188
    188189/* Transport protocol identifiers or just Protocol identifiers */
    189190#define SCSI_TPROTO_FCP 0
  • scsiprint.cpp

    diff -Naur smartmontools_original/scsiprint.cpp smartmontools_patched/scsiprint.cpp
    old new  
    22682268            failuretest(MANDATORY_CMD, returnval |= FAILID);
    22692269        any_output = true;
    22702270    }
    2271     is_disk = (SCSI_PT_DIRECT_ACCESS == peripheral_type);
     2271    is_disk = ((SCSI_PT_DIRECT_ACCESS == peripheral_type) ||
     2272               (SCSI_PT_HOST_MANAGED == peripheral_type));
    22722273    is_tape = ((SCSI_PT_SEQUENTIAL_ACCESS == peripheral_type) ||
    22732274               (SCSI_PT_MEDIUM_CHANGER == peripheral_type));
    22742275