From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Rockai Date: Thu, 07 Jan 2010 21:02:09 +0100 Subject: [PATCH] Relax exit codes for policy-driven lvconvert --repair. Message-ID: <873a2h4rb2.fsf@twilight.int.mornfall.net.> List-Id: To: lvm-devel@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, due to the interpretation of "replace" policies as "replace if possible, downconvert otherwise", we should treat successful downconversion as a success in these cases, even if we were unable to replace the missing devices with new ones. The attached patch also makes the "nothing to repair" condition a non-error (with and without --use-policies... it's arguably not really an error). This would hopefully address RHBZ 552723, if it is indeed the case (as it seems) that the problem there is that the missing devices have already returned by the time that lvconvert --repair kicks in (and therefore it does not detect anything to repair). Yours, Petr. -------------- next part -------------- A non-text attachment was scrubbed... Name: lvconvert-relax-failures-with-policy.diff Type: text/x-diff Size: 5086 bytes Desc: not available URL: