[comp.sys.sgi] File too big error.

chlebana@physics.utoronto.ca (Frank Chlebana) (06/10/91)

I am using the write entry point in a device driver to transfer data
from local memory to external storage. After running for some time the
write call returns with the error "File too large" (EFBIG). In the driver,
I have set the variables u.u_offset = u.u_pboff = 0 when write is called.

Since my file overflows, there must be another variable which keeps 
track of how much data was writen to the file.

I would like to reset this varable, on every call to write, so that it 
looks like nothing was written to the file. 

What is the name of the variable that keeps track of how much data is writen
to an open file?

Frank Chlebana
chlebana@oldkat.physics.utoronto.ca