dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
923a60
From 2a62c3c66698148f1439176bd6ca5a946b8de550 Mon Sep 17 00:00:00 2001
923a60
From: Tom Lyon <pugs@drivescale.com>
923a60
Date: Mon, 21 Sep 2015 14:36:32 -0700
923a60
Subject: [PATCH] Fixup WWN bytes for big-endian systems
923a60
923a60
Cherry-picked from: cf22cddcfd07d10fecd7b03ef465e957054daec2
923a60
Resolves: #1273306
923a60
---
923a60
 src/udev/ata_id/ata_id.c | 4 ++++
923a60
 1 file changed, 4 insertions(+)
923a60
923a60
diff --git a/src/udev/ata_id/ata_id.c b/src/udev/ata_id/ata_id.c
923a60
index 4adec44960..ef05fba263 100644
923a60
--- a/src/udev/ata_id/ata_id.c
923a60
+++ b/src/udev/ata_id/ata_id.c
923a60
@@ -485,6 +485,10 @@ int main(int argc, char *argv[])
923a60
                 disk_identify_fixup_uint16(identify.byte,  90);     /* time required for enhanced SECURITY ERASE UNIT */
923a60
                 disk_identify_fixup_uint16(identify.byte,  91);     /* current APM values */
923a60
                 disk_identify_fixup_uint16(identify.byte,  94);     /* current AAM value */
923a60
+                disk_identify_fixup_uint16(identify.byte, 108);     /* wwn */
923a60
+                disk_identify_fixup_uint16(identify.byte, 109);     /* wwn */
923a60
+                disk_identify_fixup_uint16(identify.byte, 110);     /* wwn */
923a60
+                disk_identify_fixup_uint16(identify.byte, 111);     /* wwn */
923a60
                 disk_identify_fixup_uint16(identify.byte, 128);     /* device lock function */
923a60
                 disk_identify_fixup_uint16(identify.byte, 217);     /* nominal media rotation rate */
923a60
                 memcpy(&id, identify.byte, sizeof id);