Skip to contentSkip to conversation

Fix spurious sharing errors in /etc/xen/scripts/block

PATCH New Charles Coffing 1 participant 1 message Mar 30, 2006

lore
Share & tools
lore
#0 lore raw

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.)

tools/examples/block +1 -1
Index: xen-unstable/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 ' ')

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel