lkml.org 
[lkml]   [1999]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: BLKRRPART ioctl
Date
russell@coker.com.au (Russell Coker) writes:
> I have been looking into the issue of fdisk requiring a reboot.
> It seems that if the device has a usage count >1 (the operation of
> fdisk counts as 1 for this apparently) then it will not re-read the
> partition table.

I've been caught out by this before. All I've wanted to do was modify
the partition table to partition some space that I'd previously left
unallocated.

I noticed that at some point, the ioctls BLKPG_{ADD,DEL}_PARTITION were
added (look at drivers/block/blkpg.c). It looks as if fdisk (et al)
would be able to inform the kernel of changes to the partition table
piecemeal, and thus avoid the problem of requiring a reboot if any
partition on a disk were in use.

The comment has "aeb" in it, so perhaps Andries Brouwer could comment?

--
`O O' | Home: Nick.Holloway@alfie.demon.co.uk http://www.alfie.demon.co.uk/
// ^ \\ | Work: Nick.Holloway@parallax.co.uk

-
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    [W:0.049 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site