[Gluster-devel] struct dirent in snapview-server.c

Emmanuel Dreyfus manu at netbsd.org
Sun Jun 1 13:34:47 UTC 2014


Hi

NetBSD build chokes in master because of struct dirent usage in
snapview-server.c:svs_glfs_readdir()

Linux and NetBSD struct dirent do not have the same layout, and in fact
the whole buffer returned by readdir() has a different layout and is not
straightforward to convert. 

Where does the struct dirent comes from? Is it from a readdir() system
call? In that case I need to translate the structure, but it may be
wiser to do it earlier, i.e. just after readdir() call. 

Anyone can tell me how this is supposed to work?

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu at netbsd.org


More information about the Gluster-devel mailing list