From: Lucas Correia Villa Real <lucasvr@gobolinux.org>
To: sumit_uconn@lycos.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: inode number
Date: Tue, 6 May 2003 03:43:50 -0300 [thread overview]
Message-ID: <200305060343.50191.lucasvr@gobolinux.org> (raw)
In-Reply-To: <MHCBNPOFCDJPBDAA@mailcity.com>
Hi,
You can give a look on user_path_walk() and user_path_walk_link() (see
include/linux/fs.h), given you have the pathname.
Given you have the inode number, you can get one of the references to it by
using d_path() (see include/linux/sched.h). I just don't know how it works
when there is multiple references to the same inode number (hard links).
Lucas
On Tuesday 06 May 2003 00:52, Sumit Narayan wrote:
> Hi,
>
> Actually, what I meant with this was, suppose I have a file name, how do I
> get the inode for that? And also suppose I have the inode number, how do I
> get the complete object of that inode for use and manipulation?
>
> Thanks in advance
>
> Sumit
> --
>
> On Mon, 05 May 2003 23:27:32
>
> Sumit Narayan wrote:
> >Hi,
> >
> >How do I know which file has what Inode number? and its under which super
> > block?
> >
> >Thanks
> >
> >Sumit
> >
> >
> >____________________________________________________________
> >Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
> >http://login.mail.lycos.com/r/referral?aid=27005
> >-
> >To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> >the body of a message to majordomo@vger.kernel.org
> >More majordomo info at http://vger.kernel.org/majordomo-info.html
> >Please read the FAQ at http://www.tux.org/lkml/
>
> ____________________________________________________________
> Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
> http://login.mail.lycos.com/r/referral?aid=27005
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2003-05-06 6:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-06 3:52 inode number Sumit Narayan
2003-05-06 3:54 ` Kurt Wall
2003-05-06 6:43 ` Lucas Correia Villa Real [this message]
2003-05-06 6:51 ` Lucas Correia Villa Real
-- strict thread matches above, loose matches on Subject: below --
2003-05-06 3:27 Sumit Narayan
2003-05-06 4:09 ` Valdis.Kletnieks
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=200305060343.50191.lucasvr@gobolinux.org \
--to=lucasvr@gobolinux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sumit_uconn@lycos.com \
/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