Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ext2fs Add definitions for more reserved inodes.
details: https://anonhg.NetBSD.org/src/rev/6d758ba79ee2
branches: trunk
changeset: 749346:6d758ba79ee2
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Nov 27 11:16:54 2009 +0000
description:
Add definitions for more reserved inodes.
diffstat:
sys/ufs/ext2fs/ext2fs.h | 3 ++-
sys/ufs/ext2fs/ext2fs_dinode.h | 14 ++++++++++----
2 files changed, 12 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r a62c2ac601ec -r 6d758ba79ee2 sys/ufs/ext2fs/ext2fs.h
--- a/sys/ufs/ext2fs/ext2fs.h Fri Nov 27 11:11:22 2009 +0000
+++ b/sys/ufs/ext2fs/ext2fs.h Fri Nov 27 11:16:54 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ext2fs.h,v 1.28 2009/10/19 18:41:17 bouyer Exp $ */
+/* $NetBSD: ext2fs.h,v 1.29 2009/11/27 11:16:54 tsutsui Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -198,6 +198,7 @@
/* compatible/incompatible features */
#define EXT2F_COMPAT_PREALLOC 0x0001
+#define EXT2F_COMPAT_HASJOURNAL 0x0004
#define EXT2F_COMPAT_RESIZE 0x0010
#define EXT2F_ROCOMPAT_SPARSESUPER 0x0001
diff -r a62c2ac601ec -r 6d758ba79ee2 sys/ufs/ext2fs/ext2fs_dinode.h
--- a/sys/ufs/ext2fs/ext2fs_dinode.h Fri Nov 27 11:11:22 2009 +0000
+++ b/sys/ufs/ext2fs/ext2fs_dinode.h Fri Nov 27 11:16:54 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ext2fs_dinode.h,v 1.21 2009/10/19 18:41:17 bouyer Exp $ */
+/* $NetBSD: ext2fs_dinode.h,v 1.22 2009/11/27 11:16:54 tsutsui Exp $ */
/*
* Copyright (c) 1982, 1989, 1993
@@ -75,9 +75,15 @@
* the root inode is 2.
* Inode 3 to 10 are reserved in ext2fs.
*/
-#define EXT2_ROOTINO ((ino_t)2)
-#define EXT2_RESIZEINO ((ino_t)7)
-#define EXT2_FIRSTINO ((ino_t)11)
+#define EXT2_BADBLKINO ((ino_t)1)
+#define EXT2_ROOTINO ((ino_t)2)
+#define EXT2_ACLIDXINO ((ino_t)3)
+#define EXT2_ACLDATAINO ((ino_t)4)
+#define EXT2_BOOTLOADERINO ((ino_t)5)
+#define EXT2_UNDELDIRINO ((ino_t)6)
+#define EXT2_RESIZEINO ((ino_t)7)
+#define EXT2_JOURNALINO ((ino_t)8)
+#define EXT2_FIRSTINO ((ino_t)11)
/*
* A dinode contains all the meta-data associated with a UFS file.
Home |
Main Index |
Thread Index |
Old Index