WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Make xendomains ignore lost+found

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Make xendomains ignore lost+found
From: "Gawain Lynch" <gawain.lynch@xxxxxxxxx>
Date: Fri, 29 Jun 2007 15:36:20 +1000
Delivery-date: Fri, 29 Jun 2007 08:45:58 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=GDWNSAdQO0iyoO218Ik+QD1qK+wsF1LPRFeala0kOET6HFhM8QpYLX4rVvwbgd2I4t4vqeilK2aRQHOeQ55yH/yzaC7xqNH8zeu9vCyh5i0LWewFOpbzbXatwMKy9rcnbe774h1rDDeaMT6zzSnIa+LX/iKlg9vKHvuLN6IhkLc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=GYqO8FPq+LCHffoIGupgtYUM4/dwYq+PwnzRycdNHYlcDY9mNZ6kuRayuTdmKDWnUO2ev/V/bK50fZ3HpsTM3lOOT8xCjbwuxme5sOlv5t//CC6ZK12lWnuSR8MwibY0XR5C4zQSxuqe6qDLdL5XtyUVE/HT8ibK/n4Odk2+8IQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
As requested by Mark Williamson in BZ #681

Signed-off-by: Gawain Lynch <gawain.lynch@xxxxxxxxx>

--- xendomains.orig     2006-06-17 14:35:48.000000000 +1000
+++ xendomains  2006-06-17 14:45:29.000000000 +1000
@@ -207,10 +207,11 @@
    if [ "$XENDOMAINS_RESTORE" = "true" ] &&
       contains_something "$XENDOMAINS_SAVE"
    then
+       XENDOMAINS_SAVED=`/bin/ls $XENDOMAINS_SAVE/* | grep -v 'lost+found'`
        mkdir -p $(dirname "$LOCKFILE")
        touch $LOCKFILE
        echo -n "Restoring Xen domains:"
-       for dom in $XENDOMAINS_SAVE/*; do
+       for dom in $XENDOMAINS_SAVED; do
            echo -n " ${dom##*/}"
            xm restore $dom
            if [ $? -ne 0 ]; then
@@ -239,6 +240,7 @@
            if is_running $dom; then
                echo -n "(skip)"
            else
+               echo "(booting)"
                xm create --quiet --defconfig $dom
                if [ $? -ne 0 ]; then
                    rc_failed $?

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>