Re: hot scsi disk resize

Christoph Hellwig
2003-03-17T16:30:26Z

On Mon, Mar 17, 2003 at 10:21:41AM -0600, James Bottomley wrote:
> > --- linux/fs/block_dev.c Mon Jan 20 02:23:49 2003
> > +++ edited/fs/block_dev.c Mon Mar 3 18:49:47 2003
> > @@ -623,6 +623,8 @@
> > up(&whole->bd_sem);
> > }
> > } else {
> > + if (!part)
> > + bd_set_size(bdev,(loff_t)get_capacity(disk)<<9);
> > put_disk(disk);
> > module_put(owner);
> > if (bdev->bd_contains == bdev) {
> >
> >
>
> Because adding this in will break the initial ramdisk. Thus, although
> the SCSI layer does resize, the block layer may not.

What about moving the size setting into ->open?