Skip to content

Commit

Permalink
Fixup WWN bytes for big-endian systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Lyon committed Sep 21, 2015
1 parent 0ac58d8 commit cf22cdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/udev/ata_id/ata_id.c
Expand Up @@ -484,6 +484,10 @@ int main(int argc, char *argv[])
disk_identify_fixup_uint16(identify.byte, 90); /* time required for enhanced SECURITY ERASE UNIT */
disk_identify_fixup_uint16(identify.byte, 91); /* current APM values */
disk_identify_fixup_uint16(identify.byte, 94); /* current AAM value */
disk_identify_fixup_uint16(identify.byte, 108); /* wwn */
disk_identify_fixup_uint16(identify.byte, 109); /* wwn */
disk_identify_fixup_uint16(identify.byte, 110); /* wwn */
disk_identify_fixup_uint16(identify.byte, 111); /* wwn */
disk_identify_fixup_uint16(identify.byte, 128); /* device lock function */
disk_identify_fixup_uint16(identify.byte, 217); /* nominal media rotation rate */
memcpy(&id, identify.byte, sizeof id);
Expand Down

0 comments on commit cf22cdd

Please sign in to comment.