linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* path_lookup() alternative
@ 2012-01-23 10:19 dmitry.krivenok
  2012-01-23 21:23 ` Al Viro
  0 siblings, 1 reply; 4+ messages in thread
From: dmitry.krivenok @ 2012-01-23 10:19 UTC (permalink / raw)
  To: linux-fsdevel

Hello,
I sent this question to Al Viro first, but didn't get any feedback, so reposting here and hope that someone can help me.

I'm trying to build existing system consisting of several kernel modules and user-space tools on the latest vanilla kernel.
Previously, we used path_lookup() function to perform lookup with arbitrary flags (e.g. we passed LOOKUP_PARENT in
some cases) and save results in nameidata structure. Then, this structure was passed to other kernel functions (e.g. 
lookup_hash and then lookup_one_len) or was used directly in the module code.

The problem is that path_lookup() was removed in c9c6cac0c2bdbda42e7b804838648d0bc60ddb13 and kern_path_parent
was added instead (and, of course, it didn't allow user to pass arbitrary flags).
Then, in e3c3d9c838d48c0341c40ea45ee087e3d8c8ea39, kern_path_parent() was unexported and thus became unavailable for us.

I spent several hours learning path lookup code in the kernel tree, but didn't find a function/method which allows to get properly filled 
nameidata having only path and flags.
Is there an alternative to removed path_lookup() function or any other way of {path, flags}->{nameidata} translation?

Thanks in advance,
Dmitry

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-24 17:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-23 10:19 path_lookup() alternative dmitry.krivenok
2012-01-23 21:23 ` Al Viro
2012-01-24 13:03   ` dmitry.krivenok
2012-01-24 17:19     ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).