Ok the man-page is not clear enough :-)

----- Forwarded message from Karel Zak <k...@redhat.com> -----

Date: Mon, 15 Jun 2009 17:10:31 +0200
From: Karel Zak <k...@redhat.com>
To: Joerg Friedrich <joerg.friedr...@friedrich-kn.de>
Cc: util-linux...@vger.kernel.org, sub...@bugs.debian.org,
        Miklos Szeredi <mik...@szeredi.hu>,
        Kay Sievers <kay.siev...@vrfy.org>
Subject: Re: umount: discrepancy between manpage and program
List-ID: <util-linux-ng.vger.kernel.org>

On Mon, Jun 15, 2009 at 03:45:06PM +0200, Joerg Friedrich wrote:
> Package: mount
> Version: 2.15.1~rc1-1
> Severity: normal
> 
> Hi!
> 
> The umount-manpage states:
> 
> NOTES
>        The syntax of external umount helpers is:
> 
>        /sbin/umount.<suffix> [-nlfvr] dir | device
> 
>        where the <suffix> is filesystem type or a value from "uhelper=" mtab
>        option.
> 
>        The uhelper (unprivileged umount helper) is possible to used when

 Ah, should be:
  
         The "uhelper=" mtab option is possible to used when ...

>        non-root user wants to umount a mountpoint which is not defined in the
>        /etc/fstab file (e.g devices mounted by HAL).
> 
> But the uhelper is only called when the uhelper= option is present and
> not based on filesystem type. A feature which would be really great

 mount(8) calls /sbin/umount.<suffix>, see check_special_umountprog()
 in umount_one(). 
 
 The uhelper= is only for unprivileged users when there is not a
 proper entry in the /etc/fstab file. This is typical for removable
 media which was mounted by HAL.

> because I could umount usermounted filesytems like ltspfs (www.ltsp.org,
> fuse based) with umount.

 You need to add "user" option to your /etc/fstab. 

> I tried a quick hack (works for me), but I'm not sure about the correctness 
> :-)

 Well, I'd like kill all current userspace specific mount options and
 then remove /etc/mtab from Linux. We need to maintain all information
 about mounted devices in /proc/self/mountinfo only. The /etc/mtab is
 horrible legacy...

 My dream is a generic mount(2) option string (e.g. "usernote=<string>")
 that will be ignored by Linux kernel, but always presented in 
 /proc/self/mountinfo. This option we can use for userspace specific
 information rather than mtab.

 Miklos, any comment?


    Karel

>  
>                         if (mc->m.mnt_opts)
>                                 uhelper = get_value(mc->m.mnt_opts, 
> "uhelper=");
> +                       if (!uhelper)
> +                               uhelper = mc->m.mnt_type;
>                         if (uhelper) {
>                                 int status = 0;
>                                 if (check_special_umountprog(arg, arg,
> 
> 
> -- 
> Jörg Friedrich
> 
> There are only 10 types of people:
> Those who understand binary and those who don't.



-- 
 Karel Zak  <k...@redhat.com>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

----- End forwarded message -----

-- 
Jörg Friedrich

There are only 10 types of people:
Those who understand binary and those who don't.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to