All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Arjan van de Ven <arjanv@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: FUSE fusexmp proxy example solves umount problem!
Date: Wed, 22 Sep 2004 12:21:59 +0100	[thread overview]
Message-ID: <20040922112159.GD20688@lkcl.net> (raw)
In-Reply-To: <1095845610.2613.4.camel@laptop.fenrus.com>

On Wed, Sep 22, 2004 at 11:33:30AM +0200, Arjan van de Ven wrote:
> On Wed, 2004-09-22 at 02:49, Luke Kenneth Casson Leighton wrote:
> > what do people think about a filesystem proxy kernel module?
> > has anyone heard of such a beast already?
> > (which can also do xattrs)
> > 
> > fusexmp.c (in file system in userspace package) does stateless
> > filesystem proxy redirection.
> > 
> > this is a PERFECT solution to the problem of users removing media
> > from drives without warning. 
> 
> eh and the 2.6 kernel doesn't deal with it? It really is supposed to
> deal with it nicely already...

okay.

the reason that fusexmp works is because it doesn't actually touch the
filesystem except on an operation: there's no state information stored,
no file handles kept open, no directory handles kept open.

an implementation of this same functionality (a filesystem proxy)
in the linux kernel would involve:

- creating proxy inodes

- reconstructing the full path name

  d_path(dentry, mnt, full_path, sizeof(full_path));

  then prefixing that with the mount point and then issuing a
  proxy command.


now, if the solution to this problem in the linux kernel is broken
because someone forgot to deal with opendir() then _great_.

in the meantime...

l.

-- 
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love.  If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:lkcl@lkcl.net"> lkcl@lkcl.net </a> <br />


  parent reply	other threads:[~2004-09-22 11:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-22  0:49 FUSE fusexmp proxy example solves umount problem! Luke Kenneth Casson Leighton
2004-09-22  9:33 ` Arjan van de Ven
2004-09-22 10:29   ` Luke Kenneth Casson Leighton
2004-09-22 11:21   ` Luke Kenneth Casson Leighton [this message]
2004-09-22 13:15 ` Mario R. Carro

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=20040922112159.GD20688@lkcl.net \
    --to=lkcl@lkcl.net \
    --cc=arjanv@redhat.com \
    --cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.