1 - util-linux should provide plugin infrastructure for HAL
3 --- util-linux-2.13-pre6/mount/mount.c.uhelper 2006-09-15 13:23:23.000000000 +0200
4 +++ util-linux-2.13-pre6/mount/mount.c 2006-09-15 13:23:23.000000000 +0200
8 static const char *opt_loopdev, *opt_vfstype, *opt_offset, *opt_encryption,
9 - *opt_speed, *opt_comment;
10 + *opt_speed, *opt_comment, *opt_uhelper;
12 static struct string_opt_map {
15 { "encryption=", 0, &opt_encryption },
16 { "speed=", 0, &opt_speed },
17 { "comment=", 1, &opt_comment },
18 + { "uhelper=", 0, &opt_uhelper },
22 --- util-linux-2.13-pre6/mount/umount.8.uhelper 2004-11-10 20:49:37.000000000 +0100
23 +++ util-linux-2.13-pre6/mount/umount.8 2006-09-15 14:02:25.000000000 +0200
25 Any pending loop devices can be freed using `losetup -d', see
29 +The syntax of external umount helpers is:
32 +.BI "/sbin/umount.<suffix> [\-nlfvr] " "dir " | " device "
35 +where the <suffix> is filesystem type or a value from "uhelper=" mtab option.
37 +The uhelper (unprivileged umount request helper) is possible used when non-root
38 +user wants to umount a mountpoint which is not defined in the /etc/fstab file
39 +(e.g devices mounted by HAL).
43 table of mounted file systems
44 --- util-linux-2.13-pre6/mount/umount.c.uhelper 2006-09-15 13:23:23.000000000 +0200
45 +++ util-linux-2.13-pre6/mount/umount.c 2006-09-15 13:23:23.000000000 +0200
49 char *mtab_user = NULL;
50 + char *uhelper = NULL;
54 _("umount: %s is not mounted (according to mtab)"),
57 + * uhelper - unprivileged umount helper
58 + * -- external umount (for example HAL mounts)
61 + uhelper = get_value(mc->m.mnt_opts, "uhelper=");
64 + if (check_special_umountprog(arg, arg, uhelper, &status))
68 /* The 2.4 kernel will generally refuse to mount the same
69 filesystem on the same mount point, but will accept NFS.
70 So, unmounting must be possible. */