mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
drbd: new disk-option disable-write-same
Some backend devices claim to support write-same, but would fail actual write-same requests. Allow to set (or toggle) whether or not DRBD tries to support write-same. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
c200d98687
commit
9de7e14a1a
3 changed files with 21 additions and 5 deletions
|
@ -209,12 +209,18 @@
|
|||
#define DRBD_MD_FLUSHES_DEF 1
|
||||
#define DRBD_TCP_CORK_DEF 1
|
||||
#define DRBD_AL_UPDATES_DEF 1
|
||||
|
||||
/* We used to ignore the discard_zeroes_data setting.
|
||||
* To not change established (and expected) behaviour,
|
||||
* by default assume that, for discard_zeroes_data=0,
|
||||
* we can make that an effective discard_zeroes_data=1,
|
||||
* if we only explicitly zero-out unaligned partial chunks. */
|
||||
#define DRBD_DISCARD_ZEROES_IF_ALIGNED 1
|
||||
#define DRBD_DISCARD_ZEROES_IF_ALIGNED_DEF 1
|
||||
|
||||
/* Some backends pretend to support WRITE SAME,
|
||||
* but fail such requests when they are actually submitted.
|
||||
* This is to tell DRBD to not even try. */
|
||||
#define DRBD_DISABLE_WRITE_SAME_DEF 0
|
||||
|
||||
#define DRBD_ALLOW_TWO_PRIMARIES_DEF 0
|
||||
#define DRBD_ALWAYS_ASBP_DEF 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue