summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2015-09-22 17:08:39 +0200
committerKay Sievers <kay@vrfy.org>2015-09-22 17:08:39 +0200
commitc1f330a1f48769815523d9f5f9d7031e8de1d086 (patch)
tree28e2f5c616dc676a88d150fe5fa84cee4de764a1 /src
parentd11885c81419cac217ae132c1ef80733707ba650 (diff)
parentcf22cddcfd07d10fecd7b03ef465e957054daec2 (diff)
Merge pull request #1324 from pugs/master
Fixup WWN bytes for big-endian systems
Diffstat (limited to 'src')
-rw-r--r--src/udev/ata_id/ata_id.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/udev/ata_id/ata_id.c b/src/udev/ata_id/ata_id.c
index e265aa5f53..dcc134d0f7 100644
--- a/src/udev/ata_id/ata_id.c
+++ b/src/udev/ata_id/ata_id.c
@@ -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);