set maptype when allocating new inodes
authorMarshall Kirk McKusick <mkm@ucbvax.Berkeley.EDU>
Sun, 27 Feb 1994 16:22:18 +0000 (08:22 -0800)
committerMarshall Kirk McKusick <mkm@ucbvax.Berkeley.EDU>
Sun, 27 Feb 1994 16:22:18 +0000 (08:22 -0800)
SCCS-vsn: sbin/fsck/inode.c 8.3

usr/src/sbin/fsck/inode.c

index a7946b9..572545e 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)inode.c    8.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)inode.c    8.3 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -490,6 +490,8 @@ allocino(request, type)
        dp->di_blocks = btodb(sblock.fs_fsize);
        n_files++;
        inodirty();
        dp->di_blocks = btodb(sblock.fs_fsize);
        n_files++;
        inodirty();
+       if (newinofmt)
+               typemap[ino] = IFTODT(type);
        return (ino);
 }
 
        return (ino);
 }