Re: bdev size not updated correctly after underlying device is resized

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Patterson <andrew.patterson@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <viro@...>, <dm-devel@...>, <axboe@...>, <andmike@...>, <linux-scsi@...>
Date: Wednesday, April 16, 2008 - 7:54 pm

On Wed, 2008-04-16 at 15:59 -0600, Andrew Patterson wrote:

Thanks!

Actually this looks like a bit of an incredible hack to me since it
requires another open to trigger.

What probably should happen is that if the disk grew, then updating the
new size should be fine (fs can then expand into the space).  But if it
shrank, we probably want to invalidate the whole lot just to make sure
we don't have pages or inodes which are backed by now non-existent
pieces of the disk.

So, what about doing the check in revalidate instead?  If old size ==
new size, do nothing; if > do invalidation like media change and if <
just update the actual size?

James


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: bdev size not updated correctly after underlying device ..., James Bottomley, (Wed Apr 16, 7:54 pm)
Re: bdev size not updated correctly after underlying device ..., Andrew Patterson, (Thu Apr 17, 11:49 am)