Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Block IO question for RMS files ... Detecting EOF for empty file with deleted records...
@ 2003-05-29 19:08 Dann Corbit
  0 siblings, 0 replies; only message in thread
From: Dann Corbit @ 2003-05-29 19:08 UTC (permalink / raw)


I am using Block IO.  The file has no records in it, but it has pages
allocated.  ANALYZE/RMS shows no errors in the file.

After a sys$read, I get sys$read a status of 65537  and a DataSize of 32256
(non-zero).  The End Of Data is less than or equal to the Next Free Offset,
and yet the reported Key Length  is greater than the Total Key Size.  In
reality, the file is empty -- no valid records live there.

I only get this problem sometimes.  I am sure that there is some simple way
to detect that the file is really empty.  What is it?

P.S.
I have searched high and low for the book "RMS Internals" but it cannot be
had any more.
-- 
C-FAQ: http://www.eskimo.com/~scs/C-faq/top.html
 "The C-FAQ Book" ISBN 0-201-84519-9
C.A.P. FAQ: ftp://cap.connx.com/pub/Chess%20Analysis%20Project%20FAQ.htm



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-29 19:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-29 19:08 Block IO question for RMS files ... Detecting EOF for empty file with deleted records Dann Corbit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox