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-changelog

[Xen-changelog] Use new do_without_error function to squelch the errors

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Use new do_without_error function to squelch the errors when closing down an
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Dec 2005 14:44:11 +0000
Delivery-date: Fri, 09 Dec 2005 14:47:43 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 2b09e58cb1088104c1a3425c49cfd386fc04587c
# Parent  a12bd9e8fdf8bb647c6834a441f81d88b6adccc5
Use new do_without_error function to squelch the errors when closing down an
interface.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r a12bd9e8fdf8 -r 2b09e58cb108 tools/examples/vif-bridge
--- a/tools/examples/vif-bridge Fri Dec  9 10:50:26 2005
+++ b/tools/examples/vif-bridge Fri Dec  9 10:50:49 2005
@@ -61,9 +61,8 @@
         ;;
 
     offline)
-        brctl delif "$bridge" "$vif" ||
-          log debug "brctl delif $bridge $vif failed"
-        ifconfig "$vif" down || log debug "ifconfig $vif down failed"
+        do_without_error brctl delif "$bridge" "$vif"
+        do_without_error ifconfig "$vif" down
         ;;
 esac
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Use new do_without_error function to squelch the errors when closing down an, Xen patchbot -unstable <=