Hi David, David Woodhouse wrote:
It's intended to prepare the command which will be sent to the device, much like the prepare_flush_fn does. See sd_prepare_flush() in drivers/scsi/sd.c for an example (all the devices we've hooked up for discard in Linux so far are virtual ones, so they don't make good examples). I do have a real ATA drive with TRIM protocol support on its way to me though, so I'll be looking at that some time soon.
Sorry for my ignorance, but why "discard" is used in hard drive? What may it improve? I've always been thinking it is only useful for SSD and other FTL-enabled beasts. -- Best Regards, Artem Bityutskiy (Артём Битюцкий) -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html