On Mon, 2014-12-08 at 10:15 -0500, Theodore Ts'o wrote: > On Fri, Dec 05, 2014 at 10:58:09PM +0000, Elliott, Robert (Server Storage) wrote: > > > I have a Crucial_CT256MX1 (i.e. MX100) and it does reliably zero. > > > > make me concerned about this whitelist approach. > > > > I think you need a manufacturer assertion that this is indeed > > the design intent; you cannot be certain based on observation > > from outside. > > How is this different from a manufacturer assertion that they follow a > SCSI or ATA standard? There have been cases in the distant past > (fortunately) of disk manufacturers that ignored a CACHE FLUSH command > just to get higher Winbench scores. Does that mean we can't trust > them to do anything right? That answer depends on device type manufacturer. USB devices, hell no. ATA devices, maybe and SCSI devices usually. The main problem is usually testing. Consumer devices like USB and (s)ATA rarely get tested on anything but windows. USB devices tend to supply their own driver, so they're on the "we fix it in the driver" model which is why they bite us so badly. (S)ATA usually comply, but they only test what windows exercises, so if windows doesn't do it, chances are it never got tested. SCSI devices still tend to be tested in legacy UNIX environments, which are as diverse as we are. > What I'd suggest instead is that if a vendor states this on a spec > sheet --- more than just an e-mail assertion --- so they can be sued > if they knowingly misrepresent their product, that we take their word > at it. Of course, there will be bugs, which is why we have > blacklists, or why we can remove them from the list if it turns out > there are edge conditions where it appears the disk doesn't quite do > the right thing. > > After all, we generally take the manufacturer's word that air bags > will work as claimed, even if potentially 11 million of them are > currently subject to recall. And do we think that "the community" > would necessarily be more suited than the vendors and the manufacturer > to figure out whether or not air bags or drives are working as > desired? > > That being said, if someone wants to create a open source program > which stress tests SSD's to look for cases where it is dropping a > requested discard, that would certainly be a good thing to do... The purpose of DRAT and RZAT is to enable disk arrays deterministically to use TRIM/Unmap so arrays know what happens to stripes on discard. Arrays are being built of mostly SATA technology these days, so some manufacturers have retargetted to arrays and consumer technology (and are testing the array cases). However, windows doesn't use either feature, so manufacturers not targetting arrays will never test this feature. Hence, in this case, I think a whitelist does make sense. James -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html