From: "Kasai Takanori" Subject: Re: [PATCH] fix free of event channel in blkfront Date: Fri, 2 Feb 2007 09:18:29 +0900 Message-ID: <017601c7465f$abcb18c0$dab2220a@VF03007L> References: <023701c73385$dbfd0e50$dab2220a@VF03007L><071e01c733b6$0845e010$dab2220a@VF03007L> <45C156EC.7020400@ncic.ac.cn> <198201c745b8$a2062840$dab2220a@VF03007L> <45C19AD0.2010608@ncic.ac.cn> <1bdf01c745df$d016d7d0$dab2220a@VF03007L> <45C1E998.4000305@ncic.ac.cn> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit 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: tgh Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Hi, > I boot the VM with a img file and the conf file is as follows > ... > disk = [ 'file:/vm/dom3.img,sda1,w' ] > > and if I want to attach another img file to the VM ,then > the VM boot img must have many partitions such as sda ,sda1, sda2 when > the img file is made and > xm block-attach file:/vm1/template/another.img sda1 w > then in the VM ,mount the sda1,and access it > I am not for sure whether I understand your mean > or do you mean that the another img file with I want to attach to the VM > needs have many partitions? The boot image when starting has already been allocated to sda1. (BackDev: file:/vm/dom3.img) Therefore, it is not possible to attach to sda1 by block-attach command. Please do not overlap with FrontEnd device that has already been used. It is recognized as follows if there is a partition in the attached file. # xm block-attach file:/vm1/template/another.img sdb w another.img file (BackDev) | GuestOS(FrontDev) ------------------------------------------------------- 3 partitions(1,2,3) | sdb, sdb1, sdb2, sdb3 1 partitions(1) | sdb, sdb1 ※ 1 -> sdb1, 2 -> sdb2, 3->sdb3 It is possible to recognized as follows if there is no partition in attached file. # xm block-attach file:/vm1/template/another.img sdb1 w Best Regards, -- Takanori Kasai