Subject: bug in filehandle code?
To: None <tech-kern@netbsd.org>
From: Brett Lymn <blymn@baesystems.com.au>
List: tech-kern
Date: 09/06/2006 22:08:52
Folks,

It seems that some filehandle calls are returning file handles that
are less than FHANDLE_SIZE_MIN in size.  the comments in
<sys/fstypes.h> lead one to believe that FHANDLE_SIZE_MIN is the
smallest size a filehandle may be.  Indeed, the FHANDLE_SIZE is the MAX
of the actual filehandle size and FHANDLE_SIZE_MIN.  So, should not
all the foo_vptofh calls be returning something of at least
FHANDLE_SIZE_MIN (possibly zero padded)?  I (probably foolishly)
trusted this was so and spent a while tracking down why my kernel
paniced when playing with file handles.

-- 
Brett Lymn