All of lore.kernel.org
 help / color / mirror / Atom feed
* Questions about exportfs
@ 2008-11-27 14:51 David Howells
  2008-11-27 23:20 ` Al Viro
  0 siblings, 1 reply; 2+ messages in thread
From: David Howells @ 2008-11-27 14:51 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: dhowells, viro, linux-fsdevel


Hi Christoph,

Can you answer some questions about exportfs please?

 (1) In linux/exportfs.h, the description of the encode_fh() op says that
     "encode_fh() should return the number of bytes stored or a negative error
     code such as %-ENOSPC".

     This, however, contradicts export_encode_fh(), which returns a member of
     enum fid_type instead.  I presume the docs are wrong, or at least,
     unclear.

 (2) Why does exportfs_encode_fh() return the type of the FID?  Why not embed
     it in the fid struct?  It seems that the value has to be handed back to
     the decode routine.

 (3) Is fat_encode_fh() allowed to return a value not in the fid_type enum?

David

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

end of thread, other threads:[~2008-11-27 23:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-27 14:51 Questions about exportfs David Howells
2008-11-27 23:20 ` Al Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.