[Coco] 248 errors in NitrOS-9 repository
Gene Heskett
gheskett at wdtv.com
Tue Jul 23 14:55:11 EDT 2013
On Tuesday 23 July 2013 14:46:18 Tormod Volden did opine:
> On Sun, Jul 21, 2013 at 4:53 AM, Robert Gault wrote:
> > Lothan wrote:
> >> I'm leaning toward it being a bug in os9.exe. The reason I say this
> >> is because
> >> the output of make for the sierra christmas86_dw.dsk, I see error 248
> >> adding a
> >> few files to the root directory of this disk. The odd thing is that
> >> this disk
> >> has 2MB or more free and the root directory only has 8 files in it. I
> >> also checked the segment entries for the root directory and found
> >> the root directory
> >> has 8 sectors allocated to it. Strange.
> >
> > Well here is a clue.
> > test disk kyumgai.dsk
> >
> > after compiling with many 248 errors:
> >
> > os9 free kyumgai.dsk
> >
> > "Kyum-Gai: To Be Ninja" created on 07/20/2013
> > Capacity: 360KB (1440 sectors) 1-sector clusters
> > 1130 Free sectors, largest block 1130 sectors
> > Free space: 282KB (289280 bytes)
> >
> > from NitrOS-9 on kyumgai.dsk in drive0:
> >
> > free /d0
> >
> > "Kyum-Gai: To Be Ninja" created on: 2013/07/20
> > Capacity: 1,440 sectors (1-sector clusters)
> > 1,130 free sectors, largest block 932 sectors
> >
> > Note that while the total number of free sectors is reported the same,
> > the report for largest block count is different. I've checked the
> > count myself and 932 is correct. Os9.exe is miscalculating the
> > largest free block. If os9.exe thinks a sector is free, tries a copy,
> > and finds the sector full, that might be the cause of the 248 error.
>
> This was a tricky one, especially since it was intermittent. I never
> saw this error on Linux, and not on Windows/MingW either. However,
> today I was able to reproduce it on MingW, so I did it the painful,
> systematic way: First I built up the disk images step by step on both
> Windows and Linux so that I could establish that a disk image built on
> either would fail on "os9 copy" (the one with the many files) on
> Windows only. Then I stepped through the copy routines on both
> platforms and saw that at one point the disk image was recognized as a
> DECB disk on Windows and as the expected OS9 disk on Linux. It boiled
> down to a classic porting-to-Windows issue: Windows has the concept of
> text versus binary files, where on the former linefeed translations
> and end-of-file (ctrl-Z?) characters can come into play. Maybe a time
> stamp containing a ctrl-Z caused a premature end-of-file when reading
> in the sectors from the disk image.
>
> I have fixed this in toolshed hg, and also updated the Windows binary
> snapshots at http://toolshed.sourceforge.net/snapshots/
>
> Tormod
Thanks Tormod. But I am still green at hg.
I have a commit to push but the error I get isn't making sense.
gene at coyote:/opt/nitros9$ hg log
changeset: 2862:d9bb08593856
branch: lwtools-port
tag: tip
user: Gene Heskett <gheskett at wdtv.com>
date: Tue Jul 23 10:13:36 2013 -0400
summary: Updating some defs and makefiles
gene at coyote:/opt/nitros9$ hg push
pushing to http://hg.code.sf.net/p/nitros9/code
searching for changes
abort: push creates new remote heads!
(did you forget to merge? use push -f to force)
I did an "hg merge" because I wanted to be in step before I added 2 or 3 of
my utilities to the repo and build.
If I do a make hgupdate, will that cancel the changes I've made locally?
I hate losing my work everytime I move these repos aside and re-pull all 3
of them.
So what do I do next?
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
Cheers, Gene
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
My views
<http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml>
When you're down and out, lift up your voice and shout, "I'M DOWN AND OUT"!
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
law-abiding citizens.
More information about the Coco
mailing list