|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] xendomains: Ignore 'lost+found' when find
# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1183324601 -3600
# Node ID 27e55a7358e24fff39b897ed84ecfeeab5948975
# Parent 713bac7cba462407d131f41b7356e3213dccb74b
xendomains: Ignore 'lost+found' when finding saved dom images.
Signed-off-by: Gawain Lynch <gawain.lynch@xxxxxxxxx>
---
tools/examples/init.d/xendomains | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff -r 713bac7cba46 -r 27e55a7358e2 tools/examples/init.d/xendomains
--- a/tools/examples/init.d/xendomains Sun Jul 01 22:10:38 2007 +0100
+++ b/tools/examples/init.d/xendomains Sun Jul 01 22:16:41 2007 +0100
@@ -221,11 +221,12 @@ start()
if [ "$XENDOMAINS_RESTORE" = "true" ] &&
contains_something "$XENDOMAINS_SAVE"
then
- mkdir -p $(dirname "$LOCKFILE")
+ XENDOMAINS_SAVED=`/bin/ls $XENDOMAINS_SAVE/* | grep -v 'lost+found'`
+ mkdir -p $(dirname "$LOCKFILE")
touch $LOCKFILE
echo -n "Restoring Xen domains:"
saved_domains=`ls $XENDOMAINS_SAVE`
- for dom in $XENDOMAINS_SAVE/*; do
+ for dom in $XENDOMAINS_SAVED; do
echo -n " ${dom##*/}"
xm restore $dom
if [ $? -ne 0 ]; then
@@ -259,6 +260,7 @@ start()
if [ $? -eq 0 ] || is_running $dom; then
echo -n "(skip)"
else
+ echo "(booting)"
xm create --quiet --defconfig $dom
if [ $? -ne 0 ]; then
rc_failed $?
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] xendomains: Ignore 'lost+found' when finding saved dom images.,
Xen patchbot-unstable <=
|
|
|
|
|