quorum: Add quorum_getlength().
authorBenoît Canet <benoit@irqsave.net>
Fri, 21 Feb 2014 21:21:16 +0000 (22:21 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 21 Feb 2014 21:29:50 +0000 (22:29 +0100)
commitd55dee2044791a02394a3db7055cedac68dca26b
treeb79abcebcf1f8d2831f9846e961edcd4e86dabbf
parent95c6bff3561eedaf7c7de287bc4a002720605a8d
quorum: Add quorum_getlength().

Check that every bs file returns the same length.
Otherwise, return -EIO to disable the quorum and
avoid length discrepancy.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/quorum.c