From: <di...@us...> - 2010-11-19 07:24:59
|
Revision: 679 http://safekeep.svn.sourceforge.net/safekeep/?rev=679&view=rev Author: dimi Date: 2010-11-19 07:24:53 +0000 (Fri, 19 Nov 2010) Log Message: ----------- Work around for udev bug https://bugzilla.redhat.com/show_bug.cgi?id=577798 Modified Paths: -------------- safekeep/trunk/safekeep safekeep/trunk/safekeep.spec.in Modified: safekeep/trunk/safekeep =================================================================== --- safekeep/trunk/safekeep 2010-11-19 07:14:31 UTC (rev 678) +++ safekeep/trunk/safekeep 2010-11-19 07:24:53 UTC (rev 679) @@ -615,7 +615,13 @@ ret = spawn(['umount', snapmnt]) if ret: warn('Can not umount the snapshot: %s' % snapmnt) - ret = spawn(['lvremove', '--force', snapdev]) + + # stupid workaround for https://bugzilla.redhat.com/show_bug.cgi?id=577798 + for i in range(1,10): + ret = spawn(['lvremove', '--force', snapdev]) + if not ret: + break + if ret: warn('Can not tear down snapshot: %s' % device) Modified: safekeep/trunk/safekeep.spec.in =================================================================== --- safekeep/trunk/safekeep.spec.in 2010-11-19 07:14:31 UTC (rev 678) +++ safekeep/trunk/safekeep.spec.in 2010-11-19 07:24:53 UTC (rev 679) @@ -124,6 +124,8 @@ - Fix a bug when dumping a specific Postgresql database. - Prepare the code for newer Python versions - Drop support for Python < 2.4, subprocess module isn't supported. + - Try to remove a snapshot up to 10 times in a row to workaround + silly udev bug: https://bugzilla.redhat.com/show_bug.cgi?id=577798 - Multiple internal cleanups, and minor bugs fixes. * Thu Apr 30 2009 Dimi Paun <di...@la...> 1.2.1-1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |