Add a crude disable for DRBD barriers
authorIustin Pop <iustin@google.com>
Mon, 25 Jan 2010 12:10:25 +0000 (13:10 +0100)
committerIustin Pop <iustin@google.com>
Mon, 25 Jan 2010 16:23:00 +0000 (17:23 +0100)
commit89b70f39e6f200538c08dfafe734ee9845a46ccb
tree7055dd2c80e6b108fdce084e909a24ddeb289758
parentd80cb8c4a228b3f28b613064d931a62d0ddb435a
Add a crude disable for DRBD barriers

Ideally we want to/will have per-device DRBD controls of disk/metadata
flushes. In the meantime, we want at least a disable of the barrier
functionality for cases where one has battery-backed caches.

Background: DRBD has four mechanism of handling ordered disk-writes.
From the drbdsetup man-page, these are: barrier, flush, drain and none.
DRBD prior to 8.2 only has drain and none. This patch makes all 8.x
versions of DRBD disable all methods, and revert to none, in case one
fully trusts batteries (either UPS for the whole system or battery for
NVRAM).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Makefile.am
configure.ac
lib/bdev.py
lib/constants.py