aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorLars Ellenberg <[email protected]>2016-06-14 00:26:21 +0200
committerJens Axboe <[email protected]>2016-06-13 21:43:05 -0600
commit69ba1ee9360a6ed4adb3168fd93db430a4276332 (patch)
tree28555aad1824906e29354236f8a215d4f030b7c9 /lib/test-string_helpers.c
parentdd4f699da674010c58d7a2534215b4ca1ff13b13 (diff)
drbd: possibly disable discard support, if backend has discard_zeroes_data=0
Now that we have the discard_zeroes_if_aligned setting, we should also check it when setting up our queue parameters on the primary, not only on the receiving side. We announce discard support, UNLESS * we are connected to a peer that does not support TRIM on the DRBD protocol level. Otherwise, it would either discard, or do a fallback to zero-out, depending on its backend and configuration. * our local backend does not support discards, or (discard_zeroes_data=0 AND discard_zeroes_if_aligned=no). Signed-off-by: Philipp Reisner <[email protected]> Signed-off-by: Lars Ellenberg <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions