ia64/xen-unstable

changeset 9536:d76ef15c9c95

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>
author kaf24@firebug.cl.cam.ac.uk
date Thu Mar 30 16:53:37 2006 +0100 (2006-03-30)
parents cee79e351357
children 4c2cc7390312
files tools/examples/block
line diff
     1.1 --- a/tools/examples/block	Thu Mar 30 15:28:53 2006 +0100
     1.2 +++ b/tools/examples/block	Thu Mar 30 16:53:37 2006 +0100
     1.3 @@ -72,7 +72,7 @@ check_sharing()
     1.4    then
     1.5      toskip="^$"
     1.6    else
     1.7 -    toskip="^[^ ]* [^ ]* [^ ]* ro "
     1.8 +    toskip="^[^ ]* [^ ]* [^ ]* ro[, ]"
     1.9    fi
    1.10  
    1.11    for file in $(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d ' ')