🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #4850

Re: Validation error hack and question (was: Re/Write Error)

#4850
From: Chuck.Phillips
Date: Mon, 13 Aug 1990 09:32
33 lines
2205 bytes
In article <CHUCK.PHILLIPS.90Aug9130916@halley.FtCollins.NCR.COM> 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
Technical Details
Message-ID: <CHUCK.PHILLIPS.90Aug13103227@halley.FtCollins.NCR.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncr-mpd!Chuck.Phillips
References: <290.26B9C50B@afitamy.fidonet.org> <CHUCK.PHILLIPS.90Aug9130916@halley.FtCollins.NCR.COM> <13759@cbmvax.commodore.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <CHUCK.PHILLIPS.90Aug13103227@halley.FtCollins.NCR.COM>
Date: 13 Aug 90 09:32:27 GMT
References: <290.26B9C50B@afitamy.fidonet.org>
 <CHUCK.PHILLIPS.90Aug9130916@halley.FtCollins.NCR.COM>
 <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