direct-io.hg

changeset 13817:67faf6c59bfa

Revert 13805: losetup -r is not portable
which breaks CD support on Debian Sarge, FC4, probably others.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Wed Feb 07 12:25:18 2007 +0000 (2007-02-07)
parents 1a411820230b
children 710aec0abb61
files tools/examples/block
line diff
     1.1 --- a/tools/examples/block	Wed Feb 07 02:16:56 2007 +0000
     1.2 +++ b/tools/examples/block	Wed Feb 07 12:25:18 2007 +0000
     1.3 @@ -367,13 +367,7 @@ mount it read-write in a guest domain."
     1.4            fatal 'Failed to find an unused loop device'
     1.5          fi
     1.6  
     1.7 -        cmode=`canonicalise_mode $mode`
     1.8 -        if [ "$cmode" == 'r' ]
     1.9 -        then
    1.10 -          do_or_die losetup -r "$loopdev" "$file"
    1.11 -        else
    1.12 -          do_or_die losetup "$loopdev" "$file"
    1.13 -        fi
    1.14 +        do_or_die losetup "$loopdev" "$file"
    1.15          xenstore_write "$XENBUS_PATH/node" "$loopdev"
    1.16          write_dev "$loopdev"
    1.17          release_lock "block"