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

[Xen-devel] some questions about the new blktap2 module


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: fanliang <fanliang@xxxxxxxxxx>
  • Date: Mon, 21 Dec 2009 17:00:01 +0800
  • Delivery-date: Mon, 21 Dec 2009 01:00:41 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcqCGa8BP8HcHpJ5T3yPHpvwc1J1cQAAjqdA

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 : 
     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.
So my question is :
1,  Is blktap2 code in xen-unstable not match with linux-2.6.18-xen-3.4.2 ?
2,  Any body used VHD disk with blktap2 ?
 
Thanks ,
Lyman Van


发件人: fanliang [mailto:fanliang@xxxxxxxxxx]
发送时间: 2009年12月21日 16:44
收件人: 'xen-devel@xxxxxxxxxxxxxxxxxxx'
抄送: 'cqj@xxxxxxxxxx'
主题: 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 : 
     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.
So my question is :
1,  Is blktap2 code in xen-unstable not match with linux-2.6.18-xen-3.4.2 ?
2,  Any body used VHD disk with blktap2 ?
 
Thanks ,
Lyman Van
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.