[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] The attached trivial patch fixes cases where a block device is mounted



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID d76ef15c9c95521cbb8f5ff1c437feb7ec46a433
# Parent  cee79e351357152172f0dc4317e8d9b63bd2755c
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@xxxxxxxxxx>

diff -r cee79e351357 -r d76ef15c9c95 tools/examples/block
--- a/tools/examples/block      Thu Mar 30 14:28:53 2006
+++ b/tools/examples/block      Thu Mar 30 15:53:37 2006
@@ -72,7 +72,7 @@
   then
     toskip="^$"
   else
-    toskip="^[^ ]* [^ ]* [^ ]* ro "
+    toskip="^[^ ]* [^ ]* [^ ]* ro[, ]"
   fi
 
   for file in $(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d ' ')

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.