On Thursday 29 January 2015 11:01:02 Darrick J. Wong wrote:
It won't do all-ones, because the underlying blkdev_issue_zeroout call only
knows how to tell the device to write zeroes or perform a discard if the flag
is set and the device is whitelisted. This patch only exposes the existing
kernel call to userspace.
(All-ones could be plumbed into the storage stack, but that would have to be a
separate patch.)
I see. I've just checked the code in the mmc core and it seems to
get the correct information for both mmc and sd devices (they use
different bits to announce the feature).
So as long as the devices follow the spec, everything is fine here.
Thanks Darrick and Robert for the quick reply!
Arnd