move ROOTINO here, so applications don't have to include ufsmount.h
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 12 Nov 1991 03:27:23 +0000 (19:27 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 12 Nov 1991 03:27:23 +0000 (19:27 -0800)
SCCS-vsn: sys/ufs/ffs/dinode.h 7.12
SCCS-vsn: sys/ufs/ufs/dinode.h 7.12

usr/src/sys/ufs/ffs/dinode.h
usr/src/sys/ufs/ufs/dinode.h

index 371dbf0..9dec869 100644 (file)
@@ -4,9 +4,17 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)dinode.h    7.11 (Berkeley) %G%
+ *     @(#)dinode.h    7.12 (Berkeley) %G%
  */
 
  */
 
+/*
+ * The root inode is the root of the file system.  Inode 0 can't be used for
+ * normal purposes and historically bad blocks were linked to inode 1, thus
+ * the root inode is 2.  (Inode 1 is no longer used for this purpose, however
+ * numerous dump tapes make this assumption, so we are stuck with it).
+ */
+#define        ROOTINO ((ino_t)2)
+
 /*
  * A dinode contains all the meta-data associated with a UFS file.
  * This structure defines the on-disk format of a dinode.
 /*
  * A dinode contains all the meta-data associated with a UFS file.
  * This structure defines the on-disk format of a dinode.
index 371dbf0..9dec869 100644 (file)
@@ -4,9 +4,17 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)dinode.h    7.11 (Berkeley) %G%
+ *     @(#)dinode.h    7.12 (Berkeley) %G%
  */
 
  */
 
+/*
+ * The root inode is the root of the file system.  Inode 0 can't be used for
+ * normal purposes and historically bad blocks were linked to inode 1, thus
+ * the root inode is 2.  (Inode 1 is no longer used for this purpose, however
+ * numerous dump tapes make this assumption, so we are stuck with it).
+ */
+#define        ROOTINO ((ino_t)2)
+
 /*
  * A dinode contains all the meta-data associated with a UFS file.
  * This structure defines the on-disk format of a dinode.
 /*
  * A dinode contains all the meta-data associated with a UFS file.
  * This structure defines the on-disk format of a dinode.