Blame SOURCES/hdparm-9.54-dco_calc.patch
|
Justin Vreeland |
49b773 |
diff --color -u hdparm-9.54.orig/identify.c hdparm-9.54/identify.c
|
|
Justin Vreeland |
49b773 |
--- hdparm-9.54.orig/identify.c 2016-10-17 11:06:28.000000001 -0700
|
|
Justin Vreeland |
49b773 |
+++ hdparm-9.54/identify.c 2021-04-28 06:19:01.005819050 -0700
|
|
Justin Vreeland |
49b773 |
@@ -1488,7 +1488,7 @@
|
|
Justin Vreeland |
49b773 |
else if (dco[2] & (1<<0)) printf(" udma0");
|
|
Justin Vreeland |
49b773 |
putchar('\n');
|
|
Justin Vreeland |
49b773 |
|
|
Justin Vreeland |
49b773 |
- lba = ((((__u64)dco[5]) << 32) | (dco[4] << 16) | dco[3]) + 1;
|
|
Justin Vreeland |
49b773 |
+ lba = ((((__u64)dco[5]) << 32) | ((__u64)dco[4] << 16) |(__u64)dco[3]) + 1U;
|
|
Justin Vreeland |
49b773 |
printf("\tReal max sectors: %llu\n", lba);
|
|
Justin Vreeland |
49b773 |
|
|
Justin Vreeland |
49b773 |
printf("\tATA command/feature sets:");
|