Skip to contentSkip to conversation

tools: update netbsd hotplug scripts

PATCH Applied Christoph Egger 2 participants 2 messages Jan 12, 2011 – Jan 17, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: update netbsd hotplug scripts

Hi!

sysctl fail due to the '.' in the interface name:

Jan 10 00:02:26 paris /netbsd: xvif108.0: could not attach sysctl nodes
Jan 10 00:02:57 paris /netbsd: sysctl_createv: sysctl_create(xvif108.0)

returned 22

The kernel driver have recently been fixed and attached patch updates to the hotplug scripts accordingly.

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
tools/hotplug/NetBSD/vif-bridge +1 -1
diff -r 7aa4e7349c45 -r 3f2df469f683 tools/hotplug/NetBSD/vif-bridge
@@ -23,7 +23,7 @@ 2)
 	xbridge=$(xenstore-read "$xpath/bridge")
 	xfid=$(xenstore-read "$xpath/frontend-id")
 	xhandle=$(xenstore-read "$xpath/handle")
-	iface=xvif$xfid.$xhandle
+	iface=$(xenstore-read "$xpath/vifname")
 	echo ifconfig $iface up
 	ifconfig $iface up
 	brconfig $xbridge add $iface
tools/hotplug/NetBSD/vif-ip +1 -1
diff -r 7aa4e7349c45 -r 3f2df469f683 tools/hotplug/NetBSD/vif-ip
@@ -23,7 +23,7 @@ 2)
 	xip=$(xenstore-read "$xpath/ip")
 	xfid=$(xenstore-read "$xpath/frontend-id")
 	xhandle=$(xenstore-read "$xpath/handle")
-	iface=xvif$xfid.$xhandle
+	iface=$(xenstore-read "$xpath/vifname")
 	echo ifconfig $iface $xip up
 	ifconfig $iface $xip up
 	xenstore-write $xpath/hotplug-status connected

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw

Christoph Egger writes ("[Xen-devel] [PATCH] tools: update netbsd hotplug scripts"):

Quoted 4 lines

sysctl fail due to the '.' in the interface name:

Jan 10 00:02:26 paris /netbsd: xvif108.0: could not attach sysctl nodes
Jan 10 00:02:57 paris /netbsd: sysctl_createv: sysctl_create(xvif108.0)

returned 22

Applied, thanks.

Ian.