[Python-checkins] CVS: python/dist/src/Lib/test test_largefile.py,1.7,1.8

Thomas Wouters thomas@xs4all.net
Thu, 6 Sep 2001 16:09:41 +0200

On Thu, Sep 06, 2001 at 03:59:05PM +0200, Fredrik Lundh wrote:
> Sjoerd wrote:
> > > which means that issubclass(Irix, Unix) is false.
> >
> > That's nonsense.  Where in the definition of Unix does it say that file
> > systems are never allowed to allocate blocks when you seek past the end
> > of a file?

> quoth the Single Unix Specification:

>     Seek will allow the file offset to be set beyond the end of
>     the existing data in the file. If data is later written at this
>     point, subsequent reads of data in the gap will return bytes
>     with the value 0 until data is actually written into the gap.
>     Seek will not, by itself, extend the size of a file.

Note that it *may* allocate diskspace if a write is done after the seek,
just not purely because of the seek. It must return NUL bytes if read in
those gaps, but those could be stored on disk.

Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!