Alex Hornung (via DragonFly issue tracker) wrote:
> Alex Hornung <ahornung@gmail.com> added the comment:
>
> For reference:
> http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html
> So the standard does not specify what st_size has to be for devices.
>
> Any opinion on this matter?
If we have the size of the device in question (i.e. disk), it won't hurt to set it. Else maybe set 0 to avoid confusion? Alternatively seek to EOF could fail.
cheers
simon