From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] dossrv panics In-Reply-To: Your message of "Wed, 13 Mar 2002 00:21:23 EST." From: Quinn Dunkan Message-Id: <20020313070043.46A4A54804@zloty.ugcs.caltech.edu> Date: Tue, 12 Mar 2002 23:00:38 -0800 Topicbox-Message-UUID: 65a4e9e8-eaca-11e9-9e20-41e7f4b1d025 I made the change and it seems to be happy now. Thanks! > On a related note, in dossubs.c:/^truncfile, I think that > > while(clust > 0){ > next = getfat(xf, clust); > if(n <= 0) > putfat(xf, clust, 0); > else > >>> n -= bp->sectsize; > clust = next; > } > > should be > > n -= bp->clustsize*bp->sectsize; > > It doesn't matter, since we only call truncfile > with a count of 0. My truncfile had no 'n' and hence no if-else, just putfat(), but if it's always 0 it sounds like I'll do ok without :)