From: Lars Ellenberg Date: Thu, 1 Apr 2010 14:59:32 +0000 (+0200) Subject: drbd: don't start a resync without access to up-to-date Data X-Git-Tag: v2.6.35-rc1~442^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d4ce82b3ccd755c8ba401469ced5286b1e02284;p=pandora-kernel.git drbd: don't start a resync without access to up-to-date Data In case both nodes are "inconsistent", invalidate would have started a resync anyways, without a chance to ever succeed, just filling the logs with warning messages. Simply disallow that state change, re-using the SS_NO_UP_TO_DATE_DISK return value. This also changes the corresponding error string to "Need access to UpToDate Data" -- I found the "Refusing to be Primary without at least one UpToDate disk" answer misleading in some situations anyways. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed