From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: Trigger xen_vbd_resize Date: Thu, 15 Aug 2013 16:18:18 -0400 Message-ID: <20130815201817.GE5337@konrad-lan.dumpdata.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Steve Prochniak Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, Aug 15, 2013 at 09:03:11AM -0700, Steve Prochniak wrote: > I can see that there is support for dynamically resizing of virtual disks in blockback, but how do I trigger backend_changed->xen_blkif_schedule->xen_vbd_resize() when I use something like dd to expand my file backed storage? That would imply you are using the loop back device. If you look in the blkback driver you will see that it checks on every request that: #define vbd_sz(_v) ((_v)->bdev->bd_part ? \ (_v)->bdev->bd_part->nr_sects : \ get_capacity((_v)->bdev->bd_disk)) And if you follow get_capacity, you get to: static inline sector_t get_capacity(struct gendisk *disk) { return disk->part0.nr_sects; } Looking in the loop device.. well, I will let you figure this out - hint: figure_loop_size > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel