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

[Xen-changelog] [xen-3.2-testing] Fix losetup -r flag when we specify 'w!' for the disk mode.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1201516519 0
# Node ID 542e1b959e86cb2ee03a682169b1850f2bd96d68
# Parent  29f61d2f40b2260e2a1bd9e924a23fff3114746e
Fix losetup -r flag when we specify 'w!' for the disk mode.
From: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   16880:78a29cf8476b6e6720edbfb4c89c3809be227ffe
xen-unstable date:        Fri Jan 25 13:22:52 2008 +0000
---
 tools/examples/block |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 29f61d2f40b2 -r 542e1b959e86 tools/examples/block
--- a/tools/examples/block      Thu Jan 24 14:51:40 2008 +0000
+++ b/tools/examples/block      Mon Jan 28 10:35:19 2008 +0000
@@ -329,7 +329,7 @@ mount it read-write in a guest domain."
 
         if LANG=C losetup -h 2>&1 | grep read-only >/dev/null
         then
-          roflag="-$mode"; roflag="${roflag#-w}"
+          roflag="-$mode"; roflag="${roflag#-w}"; roflag="${roflag#-!}"
         else
           roflag=''
         fi

_______________________________________________
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®.