From mboxrd@z Thu Jan 1 00:00:00 1970 From: tgh Subject: question about blk-attach Date: Thu, 22 Mar 2007 11:16:29 +0800 Message-ID: <4601F50D.7030400@ncic.ac.cn> References: <1449F58C868D8D4E9C72945771150BDFD96753@SAUSEXMB1.amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1449F58C868D8D4E9C72945771150BDFD96753@SAUSEXMB1.amd.com> 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 hi 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