fix that annoying 'cgd0: bad magic number' bug

This commit is contained in:
cgd 1994-07-20 20:06:52 +00:00
parent 6436952bbc
commit cbc266d592

View File

@ -33,7 +33,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)mkfs.c 8.3 (Berkeley) 2/3/94";*/
static char *rcsid = "$Id: mkfs.c,v 1.9 1994/06/08 19:30:26 mycroft Exp $";
static char *rcsid = "$Id: mkfs.c,v 1.10 1994/07/20 20:06:52 cgd Exp $";
#endif /* not lint */
#include <unistd.h>
@ -934,7 +934,8 @@ alloc(size, mode)
goth:
blkno = fragstoblks(&sblock, d);
clrblock(&sblock, cg_blksfree(&acg), blkno);
clrbit(cg_clustersfree(&acg), blkno);
if (sblock.fs_contigsumsize > 0)
clrbit(cg_clustersfree(&acg), blkno);
acg.cg_cs.cs_nbfree--;
sblock.fs_cstotal.cs_nbfree--;
fscs[0].cs_nbfree--;