From: fanliang Subject: some questions about the new blktap2 module Date: Mon, 21 Dec 2009 17:00:01 +0800 Message-ID: <000501ca821b$fa9a8940$e538a60a@china.huawei.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1705858446==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============1705858446== Content-type: multipart/alternative; boundary="Boundary_(ID_9WiJEDW11t1OKsoQFMP8+A)" This is a multi-part message in MIME format. --Boundary_(ID_9WiJEDW11t1OKsoQFMP8+A) Content-type: text/plain; charset=gb2312 Content-transfer-encoding: quoted-printable Hi, all: I have some questions when read the code of the new blktap2 module. = One is in function tapdisk_vbd_map_device ( ) . In this function , the userspace proccess tapdisk2 used ioctl like this : =20 ioctl(ring->fd, BLKTAP_IOCTL_SETMODE, BLKTAP_MODE_INTERPOSE); >From the context , we can get that "ring->fd " is the file handle of the ring-device [/dev/xen/blktap-2/blktap[minor] ] . In the blktap2 driver codes , I find that blktap_ring_ioctl() didn't implement the BLKTAP_IOCTL_SETMODE ioctl case . I used xen-unstable code package and linux-2.6.18-xen-3.4.2 code package.=20 So my question is :=20 1, Is blktap2 code in xen-unstable not match with = linux-2.6.18-xen-3.4.2 ?=20 2, Any body used VHD disk with blktap2 ? =20 Thanks , Lyman Van _____ =20 =B7=A2=BC=FE=C8=CB: fanliang [mailto:fanliang@huawei.com]=20 =B7=A2=CB=CD=CA=B1=BC=E4: 2009=C4=EA12=D4=C221=C8=D5 16:44 =CA=D5=BC=FE=C8=CB: 'xen-devel@lists.xensource.com' =B3=AD=CB=CD: 'cqj@huawei.com' =D6=F7=CC=E2: some questions about the new blktap2 module Hi, all: I have some questions when read the code of the new blktap2 module. = One is in function tapdisk_vbd_map_device ( ) . In this function , the userspace proccess tapdisk2 used ioctl like this : =20 ioctl(ring->fd, BLKTAP_IOCTL_SETMODE, BLKTAP_MODE_INTERPOSE); >From the context , we can get that "ring->fd " is the file handle of the ring-device [/dev/xen/blktap-2/blktap[minor] ] . In the blktap2 driver codes , I find that blktap_ring_ioctl() didn't implement the BLKTAP_IOCTL_SETMODE ioctl case . I used xen-unstable code package and linux-2.6.18-xen-3.4.2 code package.=20 So my question is :=20 1, Is blktap2 code in xen-unstable not match with = linux-2.6.18-xen-3.4.2 ?=20 2, Any body used VHD disk with blktap2 ? =20 Thanks , Lyman Van --Boundary_(ID_9WiJEDW11t1OKsoQFMP8+A) Content-type: text/html; charset=gb2312 Content-transfer-encoding: quoted-printable
Hi, = all:
    = I have some=20 questions when read the code of the new blktap2 module. One is  in = function=20 tapdisk_vbd_map_device ( ) . In this function , the userspace proccess = tapdisk2=20 used ioctl like this : 
    =20 ioctl(ring->fd, BLKTAP_IOCTL_SETMODE,=20 BLKTAP_MODE_INTERPOSE);
From the context , = we can get=20 that "ring->fd " is the file handle of the  ring-device =20 [/dev/xen/blktap-2/blktap[minor] ]  . In the blktap2 driver codes , = I find=20 that blktap_ring_ioctl() didn't implement the  BLKTAP_IOCTL_SETMODE ioctl case . = I used=20 xen-unstable code package and linux-2.6.18-xen-3.4.2 code package.=20
So my question is : =
1,  Is blktap2 = code in=20 xen-unstable not match with linux-2.6.18-xen-3.4.2 ? =
2,  Any body = used VHD disk=20 with blktap2 ?
 
Thanks = ,
Lyman=20 Van


=B7=A2=BC=FE=C8=CB: fanliang = [mailto:fanliang@huawei.com]=20
=B7=A2=CB=CD=CA=B1=BC=E4: 2009=C4=EA12=D4=C221=C8=D5 = 16:44
=CA=D5=BC=FE=C8=CB:=20 'xen-devel@lists.xensource.com'
=B3=AD=CB=CD: = 'cqj@huawei.com'
=D6=F7=CC=E2:=20 some questions about the new blktap2 module

Hi, = all:
    = I have some=20 questions when read the code of the new blktap2 module. One is  in = function=20 tapdisk_vbd_map_device ( ) . In this function , the userspace proccess = tapdisk2=20 used ioctl like this : 
    =20 ioctl(ring->fd, BLKTAP_IOCTL_SETMODE,=20 BLKTAP_MODE_INTERPOSE);
From the context , = we can get=20 that "ring->fd " is the file handle of the  ring-device =20 [/dev/xen/blktap-2/blktap[minor] ]  . In the blktap2 driver codes , = I find=20 that blktap_ring_ioctl() didn't implement the  BLKTAP_IOCTL_SETMODE ioctl case . = I used=20 xen-unstable code package and linux-2.6.18-xen-3.4.2 code package.=20
So my question is : =
1,  Is blktap2 = code in=20 xen-unstable not match with linux-2.6.18-xen-3.4.2 ? =
2,  Any body = used VHD disk=20 with blktap2 ?
 
Thanks = ,
Lyman=20 Van
--Boundary_(ID_9WiJEDW11t1OKsoQFMP8+A)-- --===============1705858446== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1705858446==--