[systemd-devel] PATCH: src/udev/ata_id/ata_id.c: WWN recognition fails on big-endian systems
Tom Lyon
pugs at drivescale.com
Fri Sep 18 19:44:24 PDT 2015
--- a/src/udev/ata_id/ata_id.c
+++ b/src/udev/ata_id/ata_id.c
@@ -485,6 +485,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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150918/52da1e56/attachment.html>
More information about the systemd-devel
mailing list