[Drbd-dev] [PATCH 05/30] drbd: Introduce new disk config option rs-discard-granularity

Bart Van Assche bart.vanassche at sandisk.com
Mon Apr 25 17:35:26 CEST 2016


On 04/25/2016 05:10 AM, Philipp Reisner wrote:
> As long as the value is 0 the feature is disabled. With setting
> it to a positive value, DRBD limits and aligns its resync requests
> to the rs-discard-granularity setting. If the sync source detects
> all zeros in such a block, the resync target discards the range
> on disk.

Hello Phil,

Can you explain why rs-discard-granularity is configurable instead of 
e.g. setting it to the least common multiple of the discard 
granularities of the underlying block devices at both sides?

Thanks,

Bart.



More information about the drbd-dev mailing list