stubdoms 'file' based disks sharing
PATCH 1/1 stubdoms 'file' based disks sharing
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 <[email protected]>
---
stubdom/stubdom-dm +0 -4
@@ -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
tools/hotplug/Linux/block +3 -3
@@ -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