From: Petr Uzel <petr.uzel@suse.cz>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux <util-linux@vger.kernel.org>,
Miklos Szeredi <mszeredi@suse.cz>
Subject: Re: [PATCH] umount: allow non-root umount of FUSE even if not in fstab
Date: Tue, 29 Mar 2011 10:46:23 +0200 [thread overview]
Message-ID: <20110329084623.GC26819@foxbat.suse.cz> (raw)
In-Reply-To: <20110328220344.GQ21093@nb.net.home>
[-- Attachment #1: Type: text/plain, Size: 1625 bytes --]
On Tue, Mar 29, 2011 at 12:03:44AM +0200, Karel Zak wrote:
> On Mon, Mar 28, 2011 at 04:04:56PM +0200, Petr Uzel wrote:
> > I have to admit that I don't like it very much, because:
>
> I don't like it too :-)
I'm not surprised :)
>
> > - it complicates umount
> > - duplicates code from fusermount
> > - should (???) be implemented using umount helpers
>
> [...]
>
> > + /* If this is fuse-based filesystem, allow user unmount even
> > + * if the FS is not in fstab.
> > + *
> > + * Based on fusermount code. */
> > + if (strcmp(mc->m.mnt_type, "fuse") == 0 ||
> > + strcmp(mc->m.mnt_type, "fuseblk") == 0 ||
> > + strncmp(mc->m.mnt_type, "fuse.", 5) == 0 ||
> > + strncmp(mc->m.mnt_type, "fuseblk.", 8) == 0) {
>
> Wouldn't be better to always call /sbin/umount.fuse for non-roots (except
> umount -i)?
Yes, that's what I meant by umount helpers. The problem is that AFAICS
fuse does not provide this helper.
@Miklos: what do you think? Would it make sense to have umount.fuse
(most likely as symlink to /sbin/mount.fuse)? I could look into it.
>
> I believe more and more that we need something like
>
> /etc/mount.d/{fuse,foo,...}.conf
>
> where we can define such behavior for some filesystems.
Hm, I fail to understand what (regarding to this 'issue') would
you configure there. I can imagine e.g. per-fs-type default mount
options or enable/disable 'user mounts' (-i) per fs-type.
Is this what you think that should be configured via /etc/mount.d/*,
or something else?
Thanks,
Petr
--
Petr Uzel
IRC: ptr_uzl @ freenode
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2011-03-29 8:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-28 14:04 [PATCH] umount: allow non-root umount of FUSE even if not in fstab Petr Uzel
2011-03-28 14:23 ` Miklos Szeredi
2011-03-29 8:08 ` Petr Uzel
2011-03-29 8:28 ` Karel Zak
2011-03-29 8:48 ` Miklos Szeredi
2011-03-29 10:13 ` Karel Zak
2011-03-28 22:03 ` Karel Zak
2011-03-29 8:46 ` Petr Uzel [this message]
2011-03-29 8:51 ` Miklos Szeredi
2011-03-29 8:56 ` Petr Uzel
2011-03-29 10:03 ` Karel Zak
2011-03-29 10:36 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110329084623.GC26819@foxbat.suse.cz \
--to=petr.uzel@suse.cz \
--cc=kzak@redhat.com \
--cc=mszeredi@suse.cz \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox