lkml.org 
[lkml]   [2012]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] virtio-blk: Call revalidate_disk() upon online disk resize
On 03/28/2012 10:32 PM, Vivek Goyal wrote:
> 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.

Thanks, obviously right. Applied.

--
Jens Axboe



\
 
 \ /
  Last update: 2012-03-29 10:13    [W:0.059 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site