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

[Xen-changelog] Read-only mapping in blkback driver was correct after all.



ChangeSet 1.1456, 2005/05/12 11:54:17+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Read-only mapping in blkback driver was correct after all.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 blkback.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c 
b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c     2005-05-12 
07:03:57 -04:00
+++ b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c     2005-05-12 
07:03:57 -04:00
@@ -489,7 +489,7 @@
         aop[i].u.map_grant_ref.dom = blkif->domid;
         aop[i].u.map_grant_ref.ref = blkif_gref_from_fas(fas);
         aop[i].u.map_grant_ref.flags = GNTMAP_host_map;
-        if ( operation == READ )
+        if ( operation == WRITE )
             aop[i].u.map_grant_ref.flags |= GNTMAP_readonly;
     }
 

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