ia64/xen-unstable

changeset 16880:78a29cf8476b

Fix losetup -r flag when we specify 'w!' for the disk mode.
From: Zhigang Wang <zhigang.x.wang@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jan 25 13:22:52 2008 +0000 (2008-01-25)
parents 1a2f557448cf
children 3f5dec2011b0
files tools/examples/block
line diff
     1.1 --- a/tools/examples/block	Thu Jan 24 18:11:44 2008 +0000
     1.2 +++ b/tools/examples/block	Fri Jan 25 13:22:52 2008 +0000
     1.3 @@ -329,7 +329,7 @@ mount it read-write in a guest domain."
     1.4  
     1.5          if LANG=C losetup -h 2>&1 | grep read-only >/dev/null
     1.6          then
     1.7 -          roflag="-$mode"; roflag="${roflag#-w}"
     1.8 +          roflag="-$mode"; roflag="${roflag#-w}"; roflag="${roflag#-!}"
     1.9          else
    1.10            roflag=''
    1.11          fi