Xen 4.1 is used in Debian stable; the diskspec used by xl is not clearly
documented and is just a passthrough to the xm disk stanza. We need mode
'w' rather than 'rw' which is also understood by (at least) Xen 4.4.
Signed-off-by: Martin Lucina <martin@lucina.net>
fstype=$(detect_fstype $image)
[ $? -ne 0 ] && err File $image: unknown fstype
vdev=hd$(echo $bindex | tr '[0-9]' '[a-j]')
- conf_disk="${conf_disk}'file:$image,$vdev,rw',"
+ conf_disk="${conf_disk}'file:$image,$vdev,w',"
echo blk/${bindex}/type etfs >>${xenstore}
echo blk/${bindex}/fstype $fstype >>${xenstore}
echo blk/${bindex}/mountpoint $mountpoint\