From: Arnd Bergmann <arnd@arndb.de>
To: Erez Zadok <ezk@cs.sunysb.edu>
Cc: Valerie Aurora <vaurora@redhat.com>,
linux-fsdevel@vger.kernel.org,
David Woodhouse <dwmw2@infradead.org>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Jan Blunck <jblunck@suse.de>,
Christoph Hellwig <hch@infradead.org>,
Andy Whitcroft <apw@canonical.com>,
Scott James Remnant <scott@canonical.com>,
Sandu Popa Marius <sandupopamarius@gmail.com>,
Jan Rekorajski <baggins@sith.mimuw.edu.pl>,
"J. R. Okajima" <hooanon05@yahoo.co.jp>,
Vladimir Dronnikov <dronnikov@gmail.com>,
Felix Fietkau <nbd@openwrt.org>
Subject: Re: Fallthrus as full-length symlinks?
Date: Fri, 13 Nov 2009 20:55:36 +0100 [thread overview]
Message-ID: <200911132055.36442.arnd@arndb.de> (raw)
In-Reply-To: <200911131846.nADIkFR6022038@agora.fsl.cs.sunysb.edu>
On Friday 13 November 2009, Erez Zadok wrote:
> > The interesting thing about
> > this idea is that it could theoretically let us rename a file from the
> > low level file system to another place in the low-level file system
> > without copying the contents of the file up. Basically, we can
> > arbitrarily swizzle the namespace of the low-level by maintaining a
> > set of symlinks above.
>
> So now you're proposing to allow something like multiple writeable branches,
> in that you allow something other than the topmost branch to be modified.
> Moreover, it appears that what you're proposing will need to modify two or
> more branches, right?
I think you misunderstood. If the idea is that you can do a
'mv file_on_lower directory_on_higher/', you would just change the
magic symlink on the higher branch, without writing to the lower
branch, but you are able to work as if you can effectively do
operations that would otherwise require write access on the lower
branch.
> > Is this useful? Is it implementable?
I think it sounds very useful and simple, but I may also have missed something.
One issue might be that with a lot of file systems stacked on top of
each other, you could run out of stack space recursing through the
symlinks, but that's something that may already be the case, or that
can be worked around in other ways.
Another idea that I first had when reading the suggestion was to use a
symlink to self (ln -s x x) as the encoding for a fallthrough. It does
not allow renames like what you really describe, but it has another advantage
in that it does not require extensions to the upper file system layout
while not conflicting with any use case I can see.
Arnd <><
next prev parent reply other threads:[~2009-11-13 19:55 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-13 17:46 Fallthrus as full-length symlinks? Valerie Aurora
2009-11-13 18:46 ` Erez Zadok
2009-11-13 19:55 ` Arnd Bergmann [this message]
2009-11-17 19:06 ` Valerie Aurora
2009-11-17 19:13 ` Valerie Aurora
2009-11-17 19:18 ` David Woodhouse
2009-11-17 19:43 ` Valerie Aurora
2009-11-17 20:20 ` Erez Zadok
2009-11-23 18:26 ` Valerie Aurora
2009-11-23 18:44 ` Arnd Bergmann
2009-11-25 2:12 ` Valerie Aurora
2009-11-24 11:18 ` Miklos Szeredi
2009-11-18 5:47 ` hooanon05
2009-11-25 2:15 ` Valerie Aurora
2009-11-25 2:36 ` hooanon05
2009-11-25 9:43 ` David Woodhouse
[not found] <62b7cf460911151915k12c57c6dne9b49399bd8ce9d5@mail.gmail.com>
2009-11-17 0:57 ` AYAN TYAGI
2009-11-17 6:44 ` Jamie Lokier
2009-11-17 8:03 ` AYAN TYAGI
2009-11-17 19:47 ` Valerie Aurora
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=200911132055.36442.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=apw@canonical.com \
--cc=baggins@sith.mimuw.edu.pl \
--cc=dronnikov@gmail.com \
--cc=dwmw2@infradead.org \
--cc=ezk@cs.sunysb.edu \
--cc=hch@infradead.org \
--cc=hooanon05@yahoo.co.jp \
--cc=jblunck@suse.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=nbd@openwrt.org \
--cc=sandupopamarius@gmail.com \
--cc=scott@canonical.com \
--cc=vaurora@redhat.com \
--cc=viro@zeniv.linux.org.uk \
/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.