On Tue May 01 17:23:07 2007, chromatic <!-- x --> at wgz.org wrote:
> > The patch makes PIO_unix_seek to update io->fsize value if lseek
> exceeds
> > the file boundaries.
> 
> This seems sensible to me, but we don't use fsize anywhere within in
> the
> system, so I'm not sure how or where to test it.  I'd like to hold
> this patch
> for a while, pending some way of exposing file sizes to PIR.

it's not clear if this is the right place for doing it because the
system does not really change the file size with lseek (maybe on some
systems), but after a write operation on the file descriptor is done.

maybe it needs to be done in PIO_unix_write if fpos > fsize. Anyway it's
system dependent, and will need to be refined to match different
systems, and I saw no harm in introducing it hier as first approach.

Reply via email to