Fix spurious sharing errors in /etc/xen/scripts/block
PATCH 1/1 Fix spurious sharing errors in /etc/xen/scripts/block
The attached trivial patch fixes cases where a block device is mounted read-only in domain 0, but still fails to be shared with a domU, because it is mis-identified as being mounted writable. (On SUSE, CDs and DVDs are auto-mounted not with merely permissions "ro", but "ro,nosuid,nodev", hence the mis-identification.)
Signed-off-by Charles Coffing <[email protected]>
tools/examples/block +1 -1
@@ -72,7 +72,7 @@ check_sharing() then toskip="^$" else - toskip="^[^ ]* [^ ]* [^ ]* ro " + toskip="^[^ ]* [^ ]* [^ ]* ro[, ]" fi for file in $(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d ' ')
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel