Re: Yet another [Un]Zip behavior quirk. Non-stupid opinions sought.
From: Craig A. Berry (craigberry_at_mac.com.spamfooler)
Date: 11/24/04
- Next message: Bob Kaplow: "Re: DEC retail stores in the 1980s"
- Previous message: Bob Koehler: "Re: Extending DCL [was: Re: DCL suggestion for f$verify()]"
- In reply to: sms_at_antinode.org: "Re: Yet another [Un]Zip behavior quirk. Non-stupid opinions sought."
- Next in thread: prep_at_prep.synonet.com: "Re: Yet another [Un]Zip behavior quirk. Non-stupid opinions sought."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 24 Nov 2004 08:21:39 -0600
In article <04112400112152@antinode.org>, sms@antinode.org wrote:
> With my changes, files extracted from non-V archives will, for the
> first time, be fully allocated at once, instead of incrementally. I
> fail to see how this wrecks anything.
It doesn't, and I'm glad to hear that's what we're talking about. Your
original post was mostly about how bothersome pre-allocation was when
unzipping -V archives for large files, and since most of the thread has
been about that case, I thought the discussion had moved toward
changing that behavior rather than adding it for the non-V case.
> > The fact that you can't protect from something external whacking the
> > program doesn't mean you shouldn't preserve the existing modest
> > precautions against exceeding disk quota or filling up the disk. Maybe
> > the exception handling is good enough that it will delete an incomplete
> > file regardless of the reason for incompleteness, but that's something
> > worth testing for if you go ahead and give it a couple more possible
> > reasons.
>
> Other than the initial larger allocation causing the error sooner, I
> fail to see any difference from the previous behavior.
> To what "existing modest precautions against exceeding disk quota or
> filling up the disk" do you refer? So far as I know, these programs try
> to make files and either succeed or fail. We ain't got no precautions.
> We don't need no precautions. I don't have to show you any _stinking_
> precautions!
It's pretty simple. An unexpected failure that leaves a partial file
on disk is more dangerous than an unexpected failure that leaves no
file at all on disk. If the exception handling and clean-up code are
good enough, the former case never happens. It's just simpler and more
robust to get the bad news at file creation time rather than depending
on clean-up code later on. But since you're keeping pre-allocation for
the -V case and adding it for the others, you're improving things by
this measure, and I have no argument with you.
- Next message: Bob Kaplow: "Re: DEC retail stores in the 1980s"
- Previous message: Bob Koehler: "Re: Extending DCL [was: Re: DCL suggestion for f$verify()]"
- In reply to: sms_at_antinode.org: "Re: Yet another [Un]Zip behavior quirk. Non-stupid opinions sought."
- Next in thread: prep_at_prep.synonet.com: "Re: Yet another [Un]Zip behavior quirk. Non-stupid opinions sought."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|