From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Steve Prochniak <steve.prochniak@oracle.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Trigger xen_vbd_resize
Date: Thu, 15 Aug 2013 16:18:18 -0400 [thread overview]
Message-ID: <20130815201817.GE5337@konrad-lan.dumpdata.com> (raw)
In-Reply-To: <bacf2592-14c0-44ff-92a5-bb30ff2ce311@default>
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
next prev parent reply other threads:[~2013-08-15 20:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-15 16:03 Trigger xen_vbd_resize Steve Prochniak
2013-08-15 17:35 ` Pasi Kärkkäinen
2013-08-15 20:18 ` Konrad Rzeszutek Wilk [this message]
[not found] ` <169101d2-e506-41a9-ab4e-58a3329ddd10@default>
2013-08-16 15:19 ` Konrad Rzeszutek Wilk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130815201817.GE5337@konrad-lan.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=steve.prochniak@oracle.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.