Block IO question for RMS files ... Detecting EOF for empty file with deleted records...
From: Dann Corbit (dcorbit_at_connx.com)
Date: 05/29/03
- Next message: Hans Vlems: "Re: 3rd party disk in VS4000-90"
- Previous message: Michael Grunditz: "Re: 3rd party disk in VS4000-90"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 29 May 2003 12:08:22 -0700
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
- Next message: Hans Vlems: "Re: 3rd party disk in VS4000-90"
- Previous message: Michael Grunditz: "Re: 3rd party disk in VS4000-90"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|