devfs
[Top] [All Lists]

devfs kernel patch for block devices

To: <devfs@xxxxxxxxxxx>
Subject: devfs kernel patch for block devices
From: "Kevin P. Fleming" <kevin@xxxxxxxxxxxxx>
Date: Thu, 17 May 2001 18:50:24 -0700
Organization: LSG, Inc.
Sender: owner-devfs@xxxxxxxxxxx
Attached is a small kernel patch (against 2.4.4) to fix some problems I
found with devfs and some block device drivers. The problems were:

- When the partition table on a device was re-read (either through an ioctl
or other means), and previously existing partitions were no longer present,
the /dev entries for those partitions did not disappear
- For those devices supporting removable media, when the media was ejected,
the /dev entries for the partitions (and the whole disc) on that media did
not disappear
- For those devices where a driver module could be unloaded without
unloading the "major" module (only ide-disk and ide-floppy), the /dev
entries managed by that "sub-driver" did not disappear if the module was
unloaded

These problems were nearly all caused by the way the new common partition
manager works; I created a new function that the drivers can call to
explicitly remove any information related to the previous partitions when
appropriate.

Attachment: devfs-patch
Description: Binary data

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