Date: Sun, 02 May 2021 10:50:16 +0100 From: "N.J. Mann" <njm@njm.me.uk> To: Ronald Klop <ronald-lists@klop.ws> Cc: freebsd-fs@freebsd.org Subject: Re: readdir() -> d_type always zero on NFS v3 mounted filesystems Message-ID: <6A9568DA9DF89991BA30F63E@triton.njm.me.uk> In-Reply-To: <78c159ef-947a-8e2f-53bf-8d27b80193bf@klop.ws> References: <2E84A420CCC10A73504624DE@triton.njm.me.uk> <78c159ef-947a-8e2f-53bf-8d27b80193bf@klop.ws>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Ronald, On Thursday, April 29, 2021 13:14:53 +0200 Ronald Klop <ronald-lists@klop.ws> wrote: > On 4/29/21 10:24 AM, N.J. Mann wrote: [...] > > Nice analysis. The manual page dirent(5) says: > "BUGS > The usage of the member d_type of struct dirent is unportable as it is > FreeBSD-specific. It also may fail on certain file systems, for example > the cd9660 file system. > " I missed that somehow! Thanks for pointing it out. I have now got a working patch which uses stat() instead of d_type. I will send it to the author of gitup and see what he says. Regards, Nick. --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6A9568DA9DF89991BA30F63E>