From: viro@parcelfarce.linux.theplanet.co.uk
To: Bernard Blackham <b-lkml@blackham.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] VFS mapping table
Date: Sun, 1 Jun 2003 18:47:59 +0100 [thread overview]
Message-ID: <20030601174758.GM9502@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20030601133804.GA4131@amidala>
On Sun, Jun 01, 2003 at 09:38:04PM +0800, Bernard Blackham wrote:
> Whilst setting up a bunch of thin clients, I thought it'd be really
> useful if a symlink could be pointed at, say /mnt/{ip}/hostname and
> {ip} would expand to the IP address of the machine (inspired by
> Tru64 unix).
You can trivially do that by having '/mnt/{ip}' a directory and
mount --bind /mnt/$IP '/mnt/{ip}' done from initscripts. No magic
needed.
> So does anybody think this would be a useful feature to have, or
> just feature bloat? If useful, I'd be happy to port it to 2.5.xx.
a) it affects all pathname components. IOW, in effect you are getting
the same bunch of symlinks in each directory. Besides, what is supposed
to happen if somebody wants different things for different tasks (quite
realistic with your '{ip}' example)?
b) what if I set value to something that contains '/'?
c) what's so special about ' ', '\n' or '\r' (?!?) in the keys and values?
d) no locking whatsoever.
(a) is the real problem - such things should be (at the very least)
per-directory. What's more, rationale for that stuff in OSF^WTrue64
doesn't apply to Linux - we don't have to modify any filesystem objects
to get host-specific mappings. Yes, symlinks do not work if fs is
imported read-only. But we don't need these beasts to be symlinks -
host (or group of processes) can have whatever mounts it wants and
bindings are mounts. Moreover, with bindings '..' works correctly,
regardless of the relative positions in the tree, so you are less
constrained in the choice of layout. IOW, we already have tools
to do it in a clean way - no need to copy kludges caused by lack
of decent mount layer in other kernels.
prev parent reply other threads:[~2003-06-01 17:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-01 13:38 [PATCH] VFS mapping table Bernard Blackham
2003-06-01 17:47 ` viro [this message]
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=20030601174758.GM9502@parcelfarce.linux.theplanet.co.uk \
--to=viro@parcelfarce.linux.theplanet.co.uk \
--cc=b-lkml@blackham.com.au \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox