From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f164cb848d435bbc,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2003-05-29 12:35:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews2 From: "Dann Corbit" Newsgroups: comp.sys.dec Subject: Block IO question for RMS files ... Detecting EOF for empty file with deleted records... Date: Thu, 29 May 2003 12:08:22 -0700 Organization: http://extra.newsguy.com Message-ID: NNTP-Posting-Host: p-182.newsdawg.com Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.sys.dec:16113 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