Messages in this thread | | | From | (Nick Holloway) | Subject | Re: BLKRRPART ioctl | Date | 3 Aug 1999 21:56:27 +0100 |
| |
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/
| |