From: viro@parcelfarce.linux.theplanet.co.uk
To: Andrea Arcangeli <andrea@suse.de>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: d_path errors
Date: Fri, 6 Aug 2004 18:23:23 +0100 [thread overview]
Message-ID: <20040806172321.GR12308@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20040806152356.GD2514@dualathlon.random>
On Fri, Aug 06, 2004 at 05:23:56PM +0200, Andrea Arcangeli wrote:
> on a slightly different topic, Al, could you suggest how to hack d_path
> so that it provides an absolute path with respect to the init_task root
> directory?
Simple: you don't.
a) filesystem may be mounted more than once in init_task's namespace
b) filesystem may be not mounted there at all.
c) different subtrees of filessytem might be mounted there and
full tree might be not among them; your file might be covered by some of
them.
What you are asking for is about as feasible as "I have an unlinked file.
Show me a pathname of existing link to it". The best answer will be
along the lines of "use find(1) if you are that desperate". And if
vfsmount/dentry did *not* give you an absolute pathname, you are in
situation equivalent to that.
No way in hell it's getting shoved in d_path() and I'm very sceptical
about any code that really needs that.
next prev parent reply other threads:[~2004-08-06 17:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-06 15:23 Andrea Arcangeli
2004-08-06 17:23 ` viro [this message]
2004-08-06 18:34 ` Andrea Arcangeli
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=20040806172321.GR12308@parcelfarce.linux.theplanet.co.uk \
--to=viro@parcelfarce.linux.theplanet.co.uk \
--cc=akpm@osdl.org \
--cc=andrea@suse.de \
--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
all inboxes | Powered by JetHome®