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/
Home Products Support Community News


[Xen-devel] question about blk-attach

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] question about blk-attach
From: tgh <tianguanhua@xxxxxxxxxx>
Date: Thu, 22 Mar 2007 11:16:29 +0800
Delivery-date: Wed, 21 Mar 2007 20:15:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1449F58C868D8D4E9C72945771150BDFD96753@xxxxxxxxxxxxxxxxx>
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>
References: <1449F58C868D8D4E9C72945771150BDFD96753@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (Windows/20060909)
I  have  attach a disk onto the vm
and now I try to understand the code relative to blk-attach
it seems like that device_creat()->createdevice()->addStoreEntries() ,add store entry into xenstore , then backend and frontend will watch and do several related work to real add-device in backend and frontend ,is it right? and xenstore have watches to check the related entry ,is it right? I am confused ,which code or function to the real adding work, I guess it is the watches do it ,but I cannot find that fucntions

could you help me
Thanks in advance

Xen-devel mailing list