[Drbd-dev] [PATCH 22/23] drbd: implement REQ_OP_WRITE_ZEROES
lars.ellenberg at linbit.com
Thu Mar 30 12:06:41 CEST 2017
On Thu, Mar 23, 2017 at 10:33:40AM -0400, Christoph Hellwig wrote:
> It seems like DRBD assumes its on the wire TRIM request always zeroes data.
> Use that fact to implement REQ_OP_WRITE_ZEROES.
> XXX: will need a careful audit from the drbd team!
Thanks, this one looks ok to me.
The real question for me is, will the previous one (21/23)
return != 0 (some EOPNOTSUPP or else) to DRBD in more situations than
what we have now? Will it make an fstrim cause thinly provisioned
devices to suddenly be fully allocated?
Or does it unmap "the same" as what we have now?
Especially on top of dm-thin, but also on top of any other device.
That's something that is not really "obvious" to me yet.
More information about the drbd-dev