From: David Chow <davidchow@shaolinmicro.com>
To: Florin Malita <mali@go.ro>
Cc: Bryan Henderson <hbryan@us.ibm.com>, linux-fsdevel@vger.kernel.org
Subject: Re: Mountpoint lookup
Date: Sun, 23 Feb 2003 02:56:17 +0800 [thread overview]
Message-ID: <3E57C7D1.9030705@shaolinmicro.com> (raw)
In-Reply-To: 1044523812.1341.48.camel@zed.malinux.net
Florin Malita wrote:
>On Wed, 2003-02-05 at 23:15, Bryan Henderson wrote:
>
>
>>To the extent that this translation would be handy, it would be appropriate
>>to pass the information as a filesystem-type-specific mount parameter
>>(which is actually a parameter of the filesystem image, not of the mount),
>>but the semantics of the parameter wouldn't be "this is the mount point,"
>>but rather "translate absolute symlinks with respect to this base path."
>>You could have a mount program that automatically sets this parameter to
>>the same path as the mount point, but of course you'd still have to have a
>>lot of disclaimers that imported absolute symlinks don't always work the
>>way the user expects.
>>
>>
>
>Sounds reasonable.
>
>But how about translating all remote absolute symlinks to relative ones?
>Seems to be quite easy and eliminates any need of mount point knowledge.
>
>
>
Actually, this question is some question I've asked before. Al response
to me with the same answer. However, I do find it important in
communicating with user land fs implementation or stackable fs
implementation. However, the file system path (user space view) doesn't
even exists after read_super() returns. I suggests the fs driver to
implement a /proc interface for communication to user space. Because the
user space path not always tells you or able to correctly locate the
root dentry of your file system. Think of --bind or othermounts ontop of
your previous mounts. User space must check fs type or as I said some
/proc or ioctls. Symlinks is even more complicate as it can be cross
devices, this is something impossible to handle with a couple of --bind
on one another. You have to make your choice of assumptions.
regards,
David Chow
next prev parent reply other threads:[~2003-02-22 18:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-05 15:02 Mountpoint lookup Florin Malita
2003-02-05 15:03 ` Christoph Hellwig
[not found] ` <1044459408.23735.147.camel@zed.malinux.net>
[not found] ` <20030205154536.A21838@infradead.org>
2003-02-05 20:03 ` Florin Malita
2003-02-05 21:15 ` Bryan Henderson
2003-02-06 10:39 ` Florin Malita
2003-02-22 18:56 ` David Chow [this message]
2003-02-05 19:13 ` Andrew Sharp
2003-02-05 19:18 ` Christoph Hellwig
2003-02-05 20:06 ` Bryan Henderson
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=3E57C7D1.9030705@shaolinmicro.com \
--to=davidchow@shaolinmicro.com \
--cc=hbryan@us.ibm.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=mali@go.ro \
/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