diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-02-22 12:39:02 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-02-22 12:39:02 -0500 |
commit | fa675765afed59bb89adba3369094ebd428b930b (patch) | |
tree | 777a8c1bb48ef7de39073104f974209f4a462b6f /lib | |
parent | b00dc3ad74fdb676552d46ee573b88e927240d0c (diff) |
Revert mount/umount uevent removal
This change reverts the 033b96fd30db52a710d97b06f87d16fc59fee0f1 commit
from Kay Sievers that removed the mount/umount uevents from the kernel.
Some older versions of HAL still depend on these events to detect when a
new device has been mounted. These events are not correctly emitted,
and are broken by design, and so, should not be relied upon by any
future program. Instead, the /proc/mounts file should be polled to
properly detect this kind of event.
A feature-removal-schedule.txt entry has been added, noting when this
interface will be removed from the kernel.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kobject_uevent.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c index 1b1985c136ec..086a0c6e888e 100644 --- a/lib/kobject_uevent.c +++ b/lib/kobject_uevent.c | |||
@@ -38,6 +38,10 @@ static char *action_to_string(enum kobject_action action) | |||
38 | return "remove"; | 38 | return "remove"; |
39 | case KOBJ_CHANGE: | 39 | case KOBJ_CHANGE: |
40 | return "change"; | 40 | return "change"; |
41 | case KOBJ_MOUNT: | ||
42 | return "mount"; | ||
43 | case KOBJ_UMOUNT: | ||
44 | return "umount"; | ||
41 | case KOBJ_OFFLINE: | 45 | case KOBJ_OFFLINE: |
42 | return "offline"; | 46 | return "offline"; |
43 | case KOBJ_ONLINE: | 47 | case KOBJ_ONLINE: |