Re: [PATCH] Reread partition table when a partition is added

From: Andries Brouwer
Date: Mon Aug 23 2004 - 04:54:31 EST


On Mon, Aug 23, 2004 at 01:19:06AM +0300, Stefanos Harhalakis wrote:

> This small patch rereads the partition table even if the block device is
> beeing used. It only rereads it when there are no changes at the current
> partitions and there are new partitions added at the end. Any existing
> partition change will/should make it fail.
>
> Is it OK and/or useful ?

What you want is possible already today.
For an example, see partx in util-linux.

Andries


[More precisely: rereading the pt consists of (i) reading pt, and
(ii) updating kernel tables. Now (i) can be done from user space,
by fdisk-type programs, and (ii) can be done from user space,
by partx-type programs.]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/