[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: fix for 37878 and 37550
christos%zoulas.com@localhost (Christos Zoulas) writes:
>I've implemented stat functions for all the devices that called fbadop_stat
>and tried to fill the fields as best as I could. I am concerned about the
>cost of getnanotime() and the extra fields in the softc struct. Is it worth
>it? We could also simply fix this by implementing fnullop_stat, which is
>effectively what soo_stat() ends up being for non-unix sockets.
POSIX says we need the timestamps, but then it seems to only talk about
maintaining it for read() and write() but not for send()/recv(), so
that's not a very strong reason.
Pipes use getmicrotime() instead of getnanotime(). Both functions
are very fast. Cost shouldn't be an issue here.
The PRs are about fstat(1) not printing descriptors which was already
fixed by implementing output routines for the missing descriptor types
(e.g. DTYPE_MISC). The fix hasn't been pulled up.
N.B. fstat shows the missing descriptors only when you use -v
because the error message about an unsupported descriptor type
is printed as a debug message. I think that should be a regular
Michael van Elst
"A potential Snark may lurk in every tree."
Main Index |
Thread Index |