WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH] Add sharing-check for blktap

To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Add sharing-check for blktap
From: "Kasai Takanori" <kasai.takanori@xxxxxxxxxxxxxx>
Date: 2007年8月17日 17:52:30 +0900
Delivery-date: 2007年8月17日 01:53:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi All,
When the same file is specified with blktap in two or more domains,
it is not checked regardless of the mode.
The configuration file is defined as follows.
Domain1 :
disk = [ ,"tap:aio:/xen/image/tmp/drive.img-1,xvdd,w" ]
Domain2 :
disk = [ ,"tap:aio:/xen/image/tmp/drive.img-1,xvdd,w" ]
Even if the same file is specified, the domain can be started.
# xm create -f Domain1
Using config file "./Domain1"
Started domain Domain1
# xm create -f Domain2
Using config file "./Domain2"
Started domain Domain2
Whether it is possible to share in the specified mode in file backend and physical device is checked.
However, blktap is not checked at all.
Domain1 Domain2 phy: tap:
mode mode file:
--------+---------+----------+------------
 w w Error Started
 w r Error Started
 w w! Started Started
 r w Error Started
 r r Started Started
 r w! Started Started
 w! w Error Started
 w! r Started Started
 w! w! Started Started
There is a possibility of breaking the file because it can
unconsciously share the same file by two or more domains.
We corrected to do the sharing-check for blktap similarly.
It was tested to check it similarly with all cases in this patch.
Signed-off-by: Takanori Kasai <kasai.takanori@xxxxxxxxxxxxxx>
Signed-off-by: Hirofumi Tsujimura <tsujimura.hirof@xxxxxxxxxxxxxx>
Best Regards
--
Takanori Kasai

Attachment: sharing-check-for-blktap.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Add sharing-check for blktap, Kasai Takanori <=
Previous by Date: Re: [Xen-devel] [PATCH] Fix xm block/network-detach command (take2) , Masaki Kanno
Next by Date: [Xen-devel] [Q]Xen 3.1 kernel config surprises!! , pradeep singh rautela
Previous by Thread: [Xen-devel] vmx status report against changeset 15730, linux-xen: 161- no new bugs, 1 fixed , Zheng, Jeff
Next by Thread: [Xen-devel] [Q]Xen 3.1 kernel config surprises!! , pradeep singh rautela
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /