mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
d0c3f05c13
drbdsetup. Otherwise "drbdadm primary --force" won't work as expected (the kernel will say "State change failed: Need access to UpToDate data"). svn path=/nixpkgs/trunk/; revision=30195
16 lines
654 B
Diff
16 lines
654 B
Diff
Propagate the --force flag in the legacy drbdadm to drbdsetup.
|
|
Otherwise "drbdadm primary --force" won't work as expected (the kernel
|
|
will say "State change failed: Need access to UpToDate data").
|
|
|
|
diff -ru -x '*~' drbd-8.4.0-orig/user/legacy/drbdadm_main.c drbd-8.4.0/user/legacy/drbdadm_main.c
|
|
--- drbd-8.4.0-orig/user/legacy/drbdadm_main.c 2011-07-07 06:55:39.000000000 -0400
|
|
+++ drbd-8.4.0/user/legacy/drbdadm_main.c 2011-11-02 14:51:04.000000000 -0400
|
|
@@ -1547,6 +1547,7 @@
|
|
for (i = 0; i < soi; i++) {
|
|
argv[NA(argc)] = setup_opts[i];
|
|
}
|
|
+ if (force) argv[NA(argc)] = "--force";
|
|
argv[NA(argc)] = 0;
|
|
|
|
setenv("DRBD_RESOURCE", res->name, 1);
|