public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* encode_fh: have inode but no dentry
@ 2011-02-24 21:16 Dan Magenheimer
  2011-02-24 21:23 ` Al Viro
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Magenheimer @ 2011-02-24 21:16 UTC (permalink / raw)
  To: aneesh.kumar; +Cc: linux-kernel

Hi Aneesh --

I see you are continuing with encode_fh related
development so I thought I would bring this up
with you.

I have a need to call the encode_fh op in a
situation where I have an inode but not a dentry,
and calling d_find_alias(inode) sometimes returns
NULL.  In my usage, connectable is always zero, so
having just the inode should be sufficient to get
useful results from encode_fh, at least for the
filesystems I've looked at.

What I'd like to see is the generic interface to
encode_fh extended to support this situation,
probably by passing inode as another parameter,
perhaps specified so that it can only be non-NULL
if connectable==0 and dentry==NULL.

Such a change would require a patch that touched
nearly every filesystem so it's clearly not to
be taken lightly.

Any thoughts on this?

Thanks,
Dan

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

end of thread, other threads:[~2011-02-24 21:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-24 21:16 encode_fh: have inode but no dentry Dan Magenheimer
2011-02-24 21:23 ` Al Viro
2011-02-24 21:51   ` Dan Magenheimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox