Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Dann Corbit" <dcorbit@connx.com>
Subject: Block IO question for RMS files ... Detecting EOF for empty file with deleted records...
Date: Thu, 29 May 2003 12:08:22 -0700	[thread overview]
Message-ID: <bb5ls602h3i@enews2.newsguy.com> (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



                 reply	other threads:[~2003-05-29 19:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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