[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MiNT 1.11 ? are we ready for it now ?



Darryl Piper writes:

> Hi everyone
> 
> Well MiNT 1.10 seems to have settled down now, maybe its time to assemble them
> all into an offical version 1.11 ?

 here is one more fix :)  (tosfs st_nblocks)

Index: tosfs.c
@@ -535,8 +535,8 @@
 	struct tindex *ti;
 
 	/* jr: if cluster size unknown, do a getbpb once */
-	if (fc->dev < 32 && ! clsizb[fc->dev])
-		getbpb (fc->dev);
+	if (drv < 32 && ! clsizb[drv])
+		getbpb (drv);
 
 	ksprintf(tmpbuf, "%c:", drv+'A');
 	fc->fs = &tos_filesys;
@@ -685,6 +685,8 @@
 		xattr->blksize = clsizb[fc->dev];
 	
 	xattr->nblocks = (xattr->size + xattr->blksize - 1) / xattr->blksize;
+	if (!xattr->nblocks && (ti->attr & FA_DIR))
+		xattr->nblocks = 1;	/* no dir takes 0 blocks... */
 	xattr->mdate = xattr->cdate = xattr->adate = ti->date;
 	xattr->mtime = xattr->ctime = xattr->atime = ti->time;
 	xattr->mode = (ti->attr & FA_DIR) ? (S_IFDIR | DEFAULT_DIRMODE) :
-- 
J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
								...ohne Gewehr
PGP public key fingerprint =  8A 18 58 54 03 7B FC 12  1F 8B 63 C7 19 27 CF DA