Re: block: correctly fallback for zeroout
From: Martin K. Petersen
Date: Thu Jun 09 2016 - 22:05:59 EST
>>>>> "Christoph" == Christoph Hellwig <hch@xxxxxxxxxxxxx> writes:
>> Userland apps rely on EOPNOTSUPP, we can't break that.
Christoph> Rely on what exactly? Current we return EOPNOTSUPP if the
Christoph> device doesn't claim to support discards, but it returns 0 if
Christoph> the device first claims to support it but then fails the I/O.
Hopefully we can clean up this when/if we go the fallocate() route.
--
Martin K. Petersen Oracle Linux Engineering