Revision 808b27d464287666821483257289b1a3379264b2 authored by Alberto Garcia on 18 October 2018, 08:59:03 UTC, committed by Kevin Wolf on 05 November 2018, 14:09:54 UTC
The blkverify mode of Quorum only works when the number of children is
exactly two, so any attempt to add a new one must return an error.

quorum_del_child() on the other hand doesn't need any additional check
because decreasing the number of children would make it go under the
vote threshold.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reported-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
1 parent 82c4c85
History
File Mode Size
Makefile.objs -rw-r--r-- 1.9 KB
bus.c -rw-r--r-- 20.9 KB
ccid-card-emulated.c -rw-r--r-- 19.1 KB
ccid-card-passthru.c -rw-r--r-- 12.6 KB
ccid.h -rw-r--r-- 2.0 KB
chipidea.c -rw-r--r-- 4.9 KB
combined-packet.c -rw-r--r-- 6.5 KB
core.c -rw-r--r-- 22.7 KB
desc-msos.c -rw-r--r-- 6.9 KB
desc.c -rw-r--r-- 23.6 KB
desc.h -rw-r--r-- 8.4 KB
dev-audio.c -rw-r--r-- 22.9 KB
dev-bluetooth.c -rw-r--r-- 17.6 KB
dev-hid.c -rw-r--r-- 28.4 KB
dev-hub.c -rw-r--r-- 18.3 KB
dev-mtp.c -rw-r--r-- 59.9 KB
dev-network.c -rw-r--r-- 42.9 KB
dev-serial.c -rw-r--r-- 16.2 KB
dev-smartcard-reader.c -rw-r--r-- 47.1 KB
dev-storage.c -rw-r--r-- 22.4 KB
dev-uas.c -rw-r--r-- 27.9 KB
dev-wacom.c -rw-r--r-- 10.4 KB
hcd-ehci-pci.c -rw-r--r-- 7.9 KB
hcd-ehci-sysbus.c -rw-r--r-- 7.1 KB
hcd-ehci.c -rw-r--r-- 72.5 KB
hcd-ehci.h -rw-r--r-- 11.7 KB
hcd-musb.c -rw-r--r-- 44.1 KB
hcd-ohci.c -rw-r--r-- 61.5 KB
hcd-uhci.c -rw-r--r-- 39.3 KB
hcd-xhci-nec.c -rw-r--r-- 2.1 KB
hcd-xhci.c -rw-r--r-- 107.9 KB
hcd-xhci.h -rw-r--r-- 5.2 KB
host-libusb.c -rw-r--r-- 52.5 KB
host-stub.c -rw-r--r-- 1.8 KB
host.h -rw-r--r-- 1.7 KB
libhw.c -rw-r--r-- 2.3 KB
quirks-ftdi-ids.h -rw-r--r-- 46.5 KB
quirks-pl2303-ids.h -rw-r--r-- 4.1 KB
quirks.c -rw-r--r-- 1.8 KB
quirks.h -rw-r--r-- 48.9 KB
redirect.c -rw-r--r-- 82.2 KB
trace-events -rw-r--r-- 18.9 KB
tusb6010.c -rw-r--r-- 25.2 KB
xen-usb.c -rw-r--r-- 31.1 KB

back to top