Path: utzoo!attcan!uunet!ncrlnk!ncr-mpd!Chuck.Phillips From: Chuck.Phillips@FtCollins.NCR.COM (Chuck.Phillips) Newsgroups: comp.sys.amiga.tech Subject: Re: Validation error hack and question (was: Re/Write Error) Message-ID: Date: 13 Aug 90 09:32:27 GMT References: <290.26B9C50B@afitamy.fidonet.org> <13759@cbmvax.commodore.com> Sender: uucp@ncr-mpd.FtCollins Organization: NCR Microelectronics, Ft. Collins, CO Lines: 33 In-reply-to: jesup@cbmvax.commodore.com's message of 10 Aug 90 21:14:54 GMT In article Chuck.Phillips@FtCollins.NCR.COM (Chuck.Phillips) writes: >Question for the OS/disk experts: Is it possible for an AmigaOS program to >open a file for writing and then exit _normally_ (no guru or power failure) >without closing the file, possibly creating a validation error? (Exclude >programs directly accessing the disk device) >>>>> On 10 Aug 90 21:14:54 GMT, jesup@cbmvax.commodore.com (Randell Jesup) said: Randell> Sure, those could certainly cause validation to be needed (but no Randell> problems are likely to result in most cases). >Question for C=: If this is possible, are there plans to correct this in a >future release? Randell> It would be hard, since we don't know why the file was left open, Randell> even if we tracked what files a process opens. Maybe the FH was Randell> passed to another process. Thanks for the response. Another question: Is it possible to write a program that will simply close every open file on a device? (Possibly prompting the user interactively) DiskDoctor seems like extreme overkill to handle these cases; it also has the effect of undeleting lots of files I really don't want to have to clean up again. If someone could mail or post a program (or C fragment) that does this, it would be greatly appreciated. No fancy interface required. Thanks in advance, -- Chuck Phillips MS440 NCR Microelectronics Chuck.Phillips%FtCollins.NCR.com 2001 Danfield Ct. Ft. Collins, CO. 80525 uunet!ncrlnk!ncr-mpd!bach!chuckp