1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-25 23:21:33 +03:00

udev: ata_id - fixup all 8 not only 6 bytes of the fw_rev string

The last two digits are in the wrong order:
  $ hdparm -I /dev/sda | grep Revision
  4PC10362

  $ /lib/udev/ata_id -x /dev/sda | grep REVISION
  4PC10326
This commit is contained in:
Kay Sievers 2012-07-05 16:53:08 +02:00
parent 627e4bb29f
commit daa9cf546c

View File

@ -504,7 +504,7 @@ int main(int argc, char *argv[])
* use and copy it into the hd_driveid struct for convenience * use and copy it into the hd_driveid struct for convenience
*/ */
disk_identify_fixup_string(identify, 10, 20); /* serial */ disk_identify_fixup_string(identify, 10, 20); /* serial */
disk_identify_fixup_string(identify, 23, 6); /* fwrev */ disk_identify_fixup_string(identify, 23, 8); /* fwrev */
disk_identify_fixup_string(identify, 27, 40); /* model */ disk_identify_fixup_string(identify, 27, 40); /* model */
disk_identify_fixup_uint16(identify, 0); /* configuration */ disk_identify_fixup_uint16(identify, 0); /* configuration */
disk_identify_fixup_uint16(identify, 75); /* queue depth */ disk_identify_fixup_uint16(identify, 75); /* queue depth */