Re: eof/file-size consistency semantics

John May (johnmay@llnl.gov)
Mon, 21 Apr 1997 15:42:22 -0700

> Definitions:
> -----------------------------------------------------------------
> The {\it size} of an \MPI/ file is measured in bytes from the
> beginning of the file. A newly created file has a size of zero
> bytes. Using the size as a displacement gives the position of
> the byte immediately following the last byte in the file. This
> location is the {\it end of file}.
This works only with the default view, right?

> The file size, and thus the end of file, may vary between
> different processes subject to the consistency semantics
> given in \ref{sec:io-consistency-filesize}.
But if all the nodes have just sync'd the file, they will
all see the same size regardless of their view, right?

> In MPI_Seek:
> Modify to obtain:
> \const{MPI\_SEEK\_END}:
> the pointer is set to the end of file plus \mpiarg{offset}

Assuming that the size is independent of the view, what happens
if EOF falls on a hole?

John