disk *
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Utility to change hard drive performance parameters</Summary>
|
||||
<Description>hdparm has some useful utilities that allows you to get/set hard disk parameters for Linux IDE drives in runtime.</Description>
|
||||
<Archive sha1sum="54db6430645be2570e0fe4babd6d0ecfb765cc40" type="targz">https://sourceforge.net/projects/hdparm/files/hdparm/hdparm-9.54.tar.gz</Archive>
|
||||
<Archive sha1sum="b3425a141f1c0fe9f53b18631437129c2155ee45" type="targz">https://sourceforge.net/projects/hdparm/files/hdparm/hdparm-9.58.tar.gz</Archive>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
@@ -29,6 +29,13 @@
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="6">
|
||||
<Date>2020-02-01</Date>
|
||||
<Version>9.58</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2018-08-13</Date>
|
||||
<Version>9.54</Version>
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
Author: Phillip Susi <psusi@ubuntu.com>
|
||||
Subject: fix an incorrect IO error reading SMART status
|
||||
Description: The read SMART status command's return status
|
||||
was testing for a success/failure value that included 8
|
||||
bits that are "N/A" according to the standard, and required
|
||||
that they be zeros. At least some drives do not fill them
|
||||
with zeros, so correct this by masking off the undefined
|
||||
bits.
|
||||
|
||||
Index: b/atasmart.c
|
||||
===================================================================
|
||||
--- a/atasmart.c
|
||||
+++ b/atasmart.c
|
||||
@@ -925,10 +925,10 @@
|
||||
/* SAT/USB bridges truncate packets, so we only check for 4F,
|
||||
* not for 2C on those */
|
||||
if ((d->type == SK_DISK_TYPE_ATA_PASSTHROUGH_12 || cmd[3] == htons(0x00C2U)) &&
|
||||
- cmd[4] == htons(0x4F00U))
|
||||
+ (cmd[4] & htons(0xFF00U)) == htons(0x4F00U))
|
||||
*good = TRUE;
|
||||
else if ((d->type == SK_DISK_TYPE_ATA_PASSTHROUGH_12 || cmd[3] == htons(0x002CU)) &&
|
||||
- cmd[4] == htons(0xF400U))
|
||||
+ (cmd[4] & htons(0xFF00U)) == htons(0xF400U))
|
||||
*good = FALSE;
|
||||
else {
|
||||
errno = EIO;
|
||||
@@ -16,6 +16,7 @@
|
||||
<Archive sha1sum="0d0745b6bd2e5b9461d15966b5daac6c98302de8" type="tarxz">http://0pointer.de/public/libatasmart-0.19.tar.xz</Archive>
|
||||
<Patches>
|
||||
<Patch level="1">libatasmart-uninitialized-var.patch</Patch>
|
||||
<Patch level="1">libatasmart-0.19-wd-fix.patch</Patch>
|
||||
</Patches>
|
||||
<BuildDependencies>
|
||||
<Dependency>eudev-devel</Dependency>
|
||||
@@ -52,6 +53,13 @@
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="5">
|
||||
<Date>2020-02-01</Date>
|
||||
<Version>0.19</Version>
|
||||
<Comment>Rebuild New T.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2018-08-13</Date>
|
||||
<Version>0.19</Version>
|
||||
|
||||
Reference in New Issue
Block a user