From 6192e35419d84fa300c2aa997ccb236703d66671 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 10 Jun 2011 18:29:56 +0200 Subject: [PATCH] dom0: block-snapshot: enable nullglob to not fail on snapshot/origin remove Normally should not happen because all domains needs at least one snapshot device, but in some rare situation can be helpful to cleanup stale devices. --- common/block-snapshot | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/block-snapshot b/common/block-snapshot index d8605bd..bba8ee5 100755 --- a/common/block-snapshot +++ b/common/block-snapshot @@ -7,6 +7,8 @@ dir=$(dirname "$0") . "$dir/block-common.sh" +shopt -s nullglob + HOTPLUG_STORE="/var/run/xen-hotplug/${XENBUS_PATH//\//-}" get_dev() {