* [PATCH] stubdoms 'file' based disks sharing
@ 2009-05-21 16:21 Stefano Stabellini
0 siblings, 0 replies; only message in thread
From: Stefano Stabellini @ 2009-05-21 16:21 UTC (permalink / raw)
To: xen-devel
Hi all,
this simple patch allows 'file' based disks, that are blkback based
disks, to be shared between the guest domain and the stubdom.
It does so exploiting the same exception introduced in the previous
patch "stubdoms phy disks sharing".
Now we can remove the hack in stubdom-dm that forces "file" disks to be
opened using blktap instead of blkback.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
diff -r 61404d971c92 stubdom/stubdom-dm
--- a/stubdom/stubdom-dm Thu May 21 04:31:47 2009 +0100
+++ b/stubdom/stubdom-dm Thu May 21 17:15:49 2009 +0100
@@ -114,10 +114,6 @@
vbd_dev=`xenstore-read $i/dev`
vbd_front=`xenstore-read $i/frontend`
vbd_devtype=`xenstore-read $vbd_front/device-type`
- if [ $vbd_type = "file" ]
- then
- vbd_type="tap:aio"
- fi
if [ $j -ne 0 ]
then
echo -n "," >> /etc/xen/stubdoms/$domname-dm
diff -r 61404d971c92 tools/hotplug/Linux/block
--- a/tools/hotplug/Linux/block Thu May 21 04:31:47 2009 +0100
+++ b/tools/hotplug/Linux/block Thu May 21 17:15:49 2009 +0100
@@ -202,13 +202,13 @@
p=$(xenstore_read "$XENBUS_PATH/params")
mode=$(xenstore_read "$XENBUS_PATH/mode")
fi
+ FRONTEND_ID=$(xenstore_read "$XENBUS_PATH/frontend-id")
+ FRONTEND_UUID=$(xenstore_read_default \
+ "/local/domain/$FRONTEND_ID/vm" 'unknown')
case $t in
phy)
dev=$(expand_dev $p)
- FRONTEND_ID=$(xenstore_read "$XENBUS_PATH/frontend-id")
- FRONTEND_UUID=$(xenstore_read_default \
- "/local/domain/$FRONTEND_ID/vm" 'unknown')
if [ -L "$dev" ]
then
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-21 16:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-21 16:21 [PATCH] stubdoms 'file' based disks sharing Stefano Stabellini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.