[issue1632] Seek to end of file returns 136 on CD/DVD drives

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Thu Dec 17 06:57:10 PST 2009


Alex Hornung (via DragonFly issue tracker) wrote:
Alex Hornung <ahornung at 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





More information about the Bugs mailing list