From: Vivek Goyal Date: Thu, 29 Mar 2012 08:09:44 +0000 (+0200) Subject: virtio-blk: Call revalidate_disk() upon online disk resize X-Git-Tag: v3.4-rc3~12^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9986f303dc0f285401de28cf96f42f4dd23a4a1;p=pandora-kernel.git virtio-blk: Call revalidate_disk() upon online disk resize If a virtio disk is open in guest and a disk resize operation is done, (virsh blockresize), new size is not visible to tools like "fdisk -l". This seems to be happening as we update only part->nr_sects and not bdev->bd_inode size. Call revalidate_disk() which should take care of it. I tested growing disk size of already open disk and it works for me. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe --- Reading git-diff-tree failed