devfs
[Top] [All Lists]

Re: Adding/deleting partitions does not notify DevFS

To: "Hong H. Pham" <hhp@xxxxxxxxxxx>, <devfs@xxxxxxxxxxx>
Subject: Re: Adding/deleting partitions does not notify DevFS
From: "Kevin P. Fleming" <kevin@xxxxxxxxxxxxx>
Date: Thu, 20 Dec 2001 09:39:17 -0700
Organization: LSG, Inc.
References: <Pine.LNX.4.43.0112201027340.3460-100000@hawk.ottawa.xandros.ca>
Sender: owner-devfs@xxxxxxxxxxx
Then this is a bug in the block device driver... the driver should cause a
revalidate after those ioctls are issued (and succeed). When the revalidate
is done, the devfs partition entries will be kept in sync with the device's
partition list.

Normally, the partition editor itself (fdisk, parted, etc.) will cause the
revalidate as well when you save the table to the device. Is there some
reason why this is not happening with the blkpg driver?

----- Original Message -----
From: "Hong H. Pham" <hhp@xxxxxxxxxxx>
To: <devfs@xxxxxxxxxxx>
Sent: Thursday, December 20, 2001 8:45 AM
Subject: Adding/deleting partitions does not notify DevFS


> Hi,
>
> The functions add_partition() and del_partition(), for the ioctl()
> commands BLKPG_ADD_PARTITION and BLKPG_DEL_PARTITION respectively, in
> drivers/block/blkpg.c do not notify the devfs system that the
> partition layout has been changed.  Consequently, the desired symlinks
> in /dev/discs/... disappear and the entries in /proc/partitions are
> invalid.
>
> I am using the 2.4.16 kernel.  This problem can be verified by using GNU
> libparted (1.5.x) on a system running DevFS.  Use the command 'parted' to
> add or delete a partition (but at least one partition should exist), and
> commit to disk.
>
> Cheers,
> ..Hong
>
>
>
>


<Prev in Thread] Current Thread [Next in Thread>