On 2015-07-14 13:43, Sergei Shtylyov wrote:
Hello.
On 7/14/2015 2:28 PM, Arne Fitzenreiter wrote:
sone disks lose data at trim also with disabled ncq
so this add a switch to force disable trim.
You forgot to sign off on the patch, so it can't be applied.
Ok. Next time i will not forget the "-s"
[...]
diff --git a/drivers/ata/libata-transport.c
b/drivers/ata/libata-transport.c
index d6c37bc..3a13c7d 100644
--- a/drivers/ata/libata-transport.c
+++ b/drivers/ata/libata-transport.c
@@ -569,6 +569,8 @@ show_ata_dev_trim(struct device *dev,
if (!ata_id_has_trim(ata_dev->id))
mode = "unsupported";
+ else if (ata_dev->horkage & ATA_HORKAGE_NOTRIM)
+ mode = "forced_unsupported";
Indented too much.
Should i change this to "unsupported" or better to something else?
Greets,
Arne
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html