lkml.org 
[lkml]   [1999]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: BLKRRPART ioctl
Date
On Tue, 03 Aug 1999, you wrote:
>tytso@mit.edu said:
>> Or if you moved the start or end points of the partition!
>
>If you move the start, OK. Moving the end is allowed as long as you make sure
>you resize the filesystem before actually clobbering it.
>
>> Maybe the correct solution would be to make the kernel check
>> whether we're changing any partitions that are in use - and only
>> decline to re-read the table in that case.
>
>tytso@mit.edu said:
>> This is probably the right long-term strategy.
>
>I'd prefer that the kernel refused to reload the partition table iff the
>_start_ of any in-use partition has changed, rather than either end of the
>partition.

What exactly do you mean by "start rather than either end"? The start is one
end...

Also if we change the start of an active partition then we must also call the
file system code on that partition and tell it to change it's offset for
everything (significant change). For the end to change we just need an IOCTL
to advise of the new size.
I am not up to coding this. I will have a go at making the kernel re-read as
long as you don't change mounted file systems in ways other than the FS type.

--
This is the noise that keeps me awake

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site