kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: rohan.puri15@gmail.com (Rohan Puri)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to get the inode - no path_lookup
Date: Thu, 17 Sep 2015 13:40:38 +0530	[thread overview]
Message-ID: <CALJfu6PYqUwCDP91fZR-2wW6pZgio-_ce7LUcO1Bm6=eRUyHaA@mail.gmail.com> (raw)
In-Reply-To: <20150916223154.GA22045@kroah.com>

On 17 Sep 2015 04:02, "Greg KH" <greg@kroah.com> wrote:
>
> On Fri, Sep 04, 2015 at 04:26:06PM +0000, priyamn wrote:
> >
> > Hi,
> >
> > I happened to come across this discussion. I am having a similar issue.
> > I am using Rhel7-3.10.0-123
> > kernel. I tried all the options that are mentioned above and none of
the api's
> > including kern_path() return valid dentry value.
> > My requirement is to fetch directory name from filepath.
>
> Why do you need a directory name from a filepath within the kernel?
> What problem are you trying to solve that you feel a directory name is
> the correct solution?
>
> And remember, namespaces, what does a "directory name" really mean... :)
>
> thanks,
>
> greg k-h
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Hi Priya,

Please make use of a single thread for one topic. There was another thread
by you on the same topic. Anyways, I am replying to this one.

Greg has asked questions that you should ask yourself before going on with
choosing one approach.

I had suggested you using kern_path() earlier, since it doesn't makes use
of nameidata, but as you are telling its not working too. Here I would like
to know the actual context of the approach so as to figure out if something
I know that can work for you or maybe you shouldn't be doing it that way.

Enjoy life,
Rohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150917/8a6be1e8/attachment.html 

      reply	other threads:[~2015-09-17  8:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-07 14:41 How to get the inode - no path_lookup Rishi Agrawal
2012-08-08  7:16 ` Rohan Puri
2012-08-09  3:15   ` Rishi Agrawal
2012-08-09  7:09     ` Rohan Puri
2012-08-13  8:47       ` Rishi Agrawal
2012-08-13  9:34         ` Rohan Puri
2015-09-04 16:26           ` priyamn
2015-09-16 22:31             ` Greg KH
2015-09-17  8:10               ` Rohan Puri [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='CALJfu6PYqUwCDP91fZR-2wW6pZgio-_ce7LUcO1Bm6=eRUyHaA@mail.gmail.com' \
    --to=rohan.puri15@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).