aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-30 16:53:37 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-30 16:53:37 +0100
commit20603fcf9a4c03a729762a76dec07a9741b8cb8e (patch)
treef0bf5303225a16fee30a294979c8920372043700
parente0d7fab70fbba5d42253b31f7841952121fa5fad (diff)
downloadxen-20603fcf9a4c03a729762a76dec07a9741b8cb8e.tar.gz
xen-20603fcf9a4c03a729762a76dec07a9741b8cb8e.tar.bz2
xen-20603fcf9a4c03a729762a76dec07a9741b8cb8e.zip
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 <ccoffing@novell.com>
-rw-r--r--tools/examples/block2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/examples/block b/tools/examples/block
index 5a43560eff..dae32dc234 100644
--- a/tools/examples/block
+++ b/tools/examples/block
@@ -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 ' ')