diff options
author | jhb <jhb@FreeBSD.org> | 2011-01-21 22:00:40 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2011-01-21 22:00:40 +0000 |
commit | c1558569084ee9a0f9662145f4ea3a3724ee1e69 (patch) | |
tree | 9f1c210f6bf6307106ee90f8ccf42e0358e2f017 /sys/fs/ext2fs/ext2fs.h | |
parent | 2873c7d7157779071b259f04d1ff84be13f71f84 (diff) | |
download | FreeBSD-src-c1558569084ee9a0f9662145f4ea3a3724ee1e69.zip FreeBSD-src-c1558569084ee9a0f9662145f4ea3a3724ee1e69.tar.gz |
- Move special inode constants to ext2_dinode.h and rename them to match
NetBSD.
- Add a constant for the HASJOURNAL compat flag.
PR: kern/153584
Submitted by: Pedro F. Giffuni giffunip at yahoo
Diffstat (limited to 'sys/fs/ext2fs/ext2fs.h')
-rwxr-xr-x | sys/fs/ext2fs/ext2fs.h | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/sys/fs/ext2fs/ext2fs.h b/sys/fs/ext2fs/ext2fs.h index 8bfd29e..9e69f1d 100755 --- a/sys/fs/ext2fs/ext2fs.h +++ b/sys/fs/ext2fs/ext2fs.h @@ -39,22 +39,6 @@ #include <sys/types.h> -/* - * Special inode numbers - */ -#define EXT2_BAD_INO 1 /* Bad blocks inode */ -#define EXT2_ROOT_INO 2 /* Root inode */ -#define EXT2_BOOT_LOADER_INO 5 /* Boot loader inode */ -#define EXT2_UNDEL_DIR_INO 6 /* Undelete directory inode */ - -/* First non-reserved inode for old ext2 filesystems */ -#define E2FS_REV0_FIRST_INO 11 - -/* - * The second extended file system magic number - */ -#define E2FS_MAGIC 0xEF53 - #if defined(_KERNEL) /* * FreeBSD passes the pointer to the in-core struct with relevant @@ -170,7 +154,7 @@ struct m_ext2fs { uint32_t e2fs_mount_opt; uint32_t e2fs_blocksize_bits; uint32_t e2fs_total_dir; /* Total number of directories */ - uint8_t *e2fs_contigdirs; + uint8_t *e2fs_contigdirs; /* (u) # of contig. allocated dirs */ char e2fs_wasvalid; /* valid at mount time */ off_t e2fs_maxfilesize; struct ext2_gd *e2fs_gd; /* Group Descriptors */ @@ -182,6 +166,14 @@ struct m_ext2fs { #define E2FS_DATE "95/08/09" #define E2FS_VERSION "0.5b" +/* First non-reserved inode for old ext2 filesystems */ +#define E2FS_REV0_FIRST_INO 11 + +/* + * The second extended file system magic number + */ +#define E2FS_MAGIC 0xEF53 + /* * Revision levels */ @@ -197,6 +189,7 @@ struct m_ext2fs { * compatible/incompatible features */ #define EXT2F_COMPAT_PREALLOC 0x0001 +#define EXT2F_COMPAT_HASJOURNAL 0x0004 #define EXT2F_COMPAT_RESIZE 0x0010 #define EXT2F_ROCOMPAT_SPARSESUPER 0x0001 |