linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ashish Khurange <ashishk@it.iitb.ac.in>
To: phillip@lougher.demon.co.uk
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: dentry object
Date: Tue, 28 Feb 2006 22:17:40 +0530	[thread overview]
Message-ID: <44047EAC.4080207@it.iitb.ac.in> (raw)
In-Reply-To: <E1FE3bW-0001ks-6C@pr-webmail-1.mail.demon.net>

phillip@lougher.demon.co.uk wrote:

I am sorry, if I am not using right terms. Please consider.

I have one basic query. I tried to google for 'dentry object' but didnt 
found the right answer. When I have dentry object of a file. Can I 
traverse till root's dentry using dentry->d_parent, step by step?

How does kernel shrinks dentry cache? Does it removes any of the dentry 
which is in 'parent path' of the concerned dentry object?

If kernel can remove such parent dentry, what happens when I access 
dentry->d_parent.

Thanks,
- Ashish

>
>
>  
>

>ashishk@it.iitb.ac.in wrote:
>  
>
>>Hi,
>> From a given dentry, i want to generate that files absolute path. I 
>>don't want to use d_path, because it doesn't cross mount points.
>>Here is the algorithm what I have decided.
>>
>>1. From dentry object get dname.
>>2. store in string
>>3. if IS_ROOT (dentry) goto stop
>>3. find its parent using dentry->parent
>>4. go to 1.
>>
>>Stop.
>>
>>Will this work?
>>
>>I have one more question, when I have dentry of a file, then if dentries 
>>of all its parents up to '/' are present in the dcache?
>>
>>    
>>
>
>AFAIK yes, unless the filesystem is being exported in which case this may
>not hold.  Read Documentation/filesystems/Exporting.
>
>Phillip
>
>  
>
>>Regards,
>>- Ashish K.
>>-
>>To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
>>the body of a message to majordomo@vger.kernel.org
>>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>    
>>
>
>  
>


  reply	other threads:[~2006-02-28 16:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-28 11:04 dentry object Ashish Khurange
2006-02-28 12:05 ` phillip
2006-02-28 16:47   ` Ashish Khurange [this message]
2006-02-28 16:00 ` Ian Kent

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=44047EAC.4080207@it.iitb.ac.in \
    --to=ashishk@it.iitb.ac.in \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=phillip@lougher.demon.co.uk \
    /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).