[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.4-testing] hotplug: ignore xenstore-read error
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1266408929 0 # Node ID 512e596e27328e775f4c53b459b4186ba3c18c47 # Parent 534fc077443902a7992d9af7d3f35ad17728842f hotplug: ignore xenstore-read error The failure to read "backend/tap/<domid>/*" in the xenstore is a usual case since the domain is gone after xenstore-ls command is executed. The error should be ignored. Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx> xen-unstable changeset: 20947:4a4caf3c052d xen-unstable date: Tue Feb 16 09:28:39 2010 +0000 --- tools/hotplug/Linux/blktap | 4 ++-- tools/hotplug/Linux/block | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff -r 534fc0774439 -r 512e596e2732 tools/hotplug/Linux/blktap --- a/tools/hotplug/Linux/blktap Wed Feb 10 09:30:55 2010 +0000 +++ b/tools/hotplug/Linux/blktap Wed Feb 17 12:15:29 2010 +0000 @@ -23,7 +23,7 @@ check_blktap_sharing() do for dev in $(xenstore-list "$base_path/$dom") do - params=$(xenstore_read "$base_path/$dom/$dev/params" | cut -d: -f2) + params=$(xenstore_read_default "$base_path/$dom/$dev/params" "" | cut -d: -f2) if [ "$file" = "$params" ] then @@ -35,7 +35,7 @@ check_blktap_sharing() return fi else - local m=$(xenstore_read "$base_path/$dom/$dev/mode") + local m=$(xenstore_read_default "$base_path/$dom/$dev/mode" "") m=$(canonicalise_mode "$m") if [ "$m" = 'w' ] diff -r 534fc0774439 -r 512e596e2732 tools/hotplug/Linux/block --- a/tools/hotplug/Linux/block Wed Feb 10 09:30:55 2010 +0000 +++ b/tools/hotplug/Linux/block Wed Feb 17 12:15:29 2010 +0000 @@ -80,7 +80,7 @@ check_sharing() return fi else - local m=$(xenstore_read "$base_path/$dom/$dev/mode") + local m=$(xenstore_read_default "$base_path/$dom/$dev/mode" "") m=$(canonicalise_mode "$m") if [ "$m" = 'w' ] _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |