[linux-lvm] resizing
Rolf Jakob
rjakob at duffy1.franken.de
Fri Jun 25 18:39:08 UTC 1999
Hello,
while reading linux/fs/super.c and trying to understand what's going
on on mounting/remounting I found some hints that make me believe
that inodes are invalidated and the super block reread when a media
change is detected.
So I wonder whether it would be an advantage to implement a check_media_change
into lvm that flags a resized lv ?
Assuming we have a resizable file system, we could let the resizer flush the
file system, do its work and set the flag to have it updated.
( I think beside a lock while doing some of the updates we should have no need
for more kernel changes - right ?).
If the lvm code sets it on its own, it may be read before the resizer has
started.
In the case a lv is not used by a file system but directly by an application
(data base ?) it may be interesting to have a notification of size changes
(This would only allow increasing for not deleting applications data).
I'm not sure if it breaks something and how open files are handled.
A mount -o remount seems to be of no harm but it calls get_super,
not read_super AFAI understood and furthermore the file system hasn't
changed its size.
Any comments ?
Rolf
--
Rolf Jakob at home (rjakob at duffy1.franken.de)
WWW : http://www.franken.de/users/duffy1/rjakob (KDE-Utils and CCS)
More information about the linux-lvm
mailing list