🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #313

Re: Complexity of reallocating storage (was users command crap)

#313
From: terryl
Date: Wed, 06 Feb 1991 22:56
35 lines
2385 bytes
In article <29421:Feb419:13:5891@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes:
>In article <4702@goanna.cs.rmit.oz.au> ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) writes:
>> Er, what about the disc running out of I-nodes?  Or going over quota?
>> Or a file server dropping dead?
>
>Well, yes, but those fall under the blanket of ``fatal errors'' which I
>mentioned at the top of the article. (Actually, going over quota
>shouldn't happen unless the system is strangely configured, but this is
>beside the point.) There's a push-pull here between ``don't catch errors
>you can't handle sensibly'' and ``don't dig your hole too deep.''

     Now, I'm reading between the lines here, but this is what I see:

     Many people have pointed out ways things can go wrong, but you just hand-
wave them away as "fatal errors" (errors that you can't possibly fix).

     Now, what I see (and from examining the code fragment from pty/master.c)
is that quite a few of the things you claim "cannot happen", could very well
happen, but your program will blindly plow on, possibly dumping core.

	<ENTER VERY IMHO MODE>

     There's nothing I hate more than programs that silently fail, because I
can't tell WHY they failed. Even just a simple "I can't do this because of that"
is preferable (like perror(filename)). At least I can say "Aha, over quota;
better delete some files." Also, don't tell me "Cannot open file", even if file
is a real live filename. Tell me WHY you can't open it.

	<EXIT VERY IMHO MODE>

__________________________________________________________
Terry Laskodi		"There's a permanent crease
     of			 in your right and wrong."
Tektronix		Sly and the Family Stone, "Stand!"
__________________________________________________________
Technical Details
Message-ID: <8921@sail.LABS.TEK.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tekchips!sail!terryl
References: <5883:Feb102:05:4991@kramden.acf.nyu.edu> <14994:Feb207:10:4791@kramden.acf.nyu.edu> <4702@goanna.cs.rmit.oz.au> <29421:Feb419:13:5891@kramden.acf.nyu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tekchips!sail!terryl
From: terryl@sail.LABS.TEK.COM
Newsgroups: comp.bugs.4bsd
Subject: Re: Complexity of reallocating storage (was users command crap)
Message-ID: <8921@sail.LABS.TEK.COM>
Date: 6 Feb 91 22:56:34 GMT
References: <5883:Feb102:05:4991@kramden.acf.nyu.edu> <14994:Feb207:10:4791@kramden.acf.nyu.edu> <4702@goanna.cs.rmit.oz.au> <29421:Feb419:13:5891@kramden.acf.nyu.edu>
Reply-To: terryl@sail.LABS.TEK.COM
Organization: Tektronix, Inc., Beaverton,  OR.
Lines: 35