ext2fs.h (231168) | ext2fs.h (232703) |
---|---|
1/*- 2 * modified for EXT2FS support in Lites 1.1 3 * 4 * Aug 1995, Godmar Back (gback@cs.utah.edu) 5 * University of Utah, Department of Computer Science 6 * | 1/*- 2 * modified for EXT2FS support in Lites 1.1 3 * 4 * Aug 1995, Godmar Back (gback@cs.utah.edu) 5 * University of Utah, Department of Computer Science 6 * |
7 * $FreeBSD: head/sys/fs/ext2fs/ext2fs.h 231168 2012-02-07 22:31:28Z pfg $ | 7 * $FreeBSD: head/sys/fs/ext2fs/ext2fs.h 232703 2012-03-08 21:06:05Z pfg $ |
8 */ 9/*- 10 * Copyright (c) 2009 Aditya Sarawgi 11 * All rights reserved. 12 * 13 * Redistribution and use in source and binary forms, with or without 14 * modification, are permitted provided that the following conditions 15 * are met: --- 108 unchanged lines hidden (view full) --- 124 uint32_t e3fs_default_mount_opts; 125 uint32_t e3fs_first_meta_bg; /* First metablock block group */ 126 uint32_t e3fs_mkfs_time; /* when the fs was created */ 127 uint32_t e3fs_jnl_blks[17]; /* backup of the journal inode */ 128 uint32_t e4fs_bcount_hi; /* block count */ 129 uint32_t e4fs_rbcount_hi; /* reserved blocks count */ 130 uint32_t e4fs_fbcount_hi; /* free blocks count */ 131 uint16_t e4fs_min_extra_isize;/* all inodes have at least some bytes */ | 8 */ 9/*- 10 * Copyright (c) 2009 Aditya Sarawgi 11 * All rights reserved. 12 * 13 * Redistribution and use in source and binary forms, with or without 14 * modification, are permitted provided that the following conditions 15 * are met: --- 108 unchanged lines hidden (view full) --- 124 uint32_t e3fs_default_mount_opts; 125 uint32_t e3fs_first_meta_bg; /* First metablock block group */ 126 uint32_t e3fs_mkfs_time; /* when the fs was created */ 127 uint32_t e3fs_jnl_blks[17]; /* backup of the journal inode */ 128 uint32_t e4fs_bcount_hi; /* block count */ 129 uint32_t e4fs_rbcount_hi; /* reserved blocks count */ 130 uint32_t e4fs_fbcount_hi; /* free blocks count */ 131 uint16_t e4fs_min_extra_isize;/* all inodes have at least some bytes */ |
132 uint16_t e4fs_want_extra_isize; /* new inodes should reserve some bytes */ | 132 uint16_t e4fs_want_extra_isize; /* inodes must reserve some bytes */ |
133 uint32_t e4fs_flags; /* miscellaneous flags */ 134 uint16_t e4fs_raid_stride; /* RAID stride */ 135 uint16_t e4fs_mmpintv; /* number of seconds to wait in MMP checking */ 136 uint64_t e4fs_mmpblk; /* block for multi-mount protection */ 137 uint32_t e4fs_raid_stripe_wid;/* blocks on all data disks (N * stride) */ 138 uint8_t e4fs_log_gpf; /* FLEX_BG group size */ 139 uint8_t e4fs_char_pad2; 140 uint16_t e4fs_pad; --- 68 unchanged lines hidden (view full) --- 209 */ 210#define EXT2F_COMPAT_PREALLOC 0x0001 211#define EXT2F_COMPAT_HASJOURNAL 0x0004 212#define EXT2F_COMPAT_RESIZE 0x0010 213 214#define EXT2F_ROCOMPAT_SPARSESUPER 0x0001 215#define EXT2F_ROCOMPAT_LARGEFILE 0x0002 216#define EXT2F_ROCOMPAT_BTREE_DIR 0x0004 | 133 uint32_t e4fs_flags; /* miscellaneous flags */ 134 uint16_t e4fs_raid_stride; /* RAID stride */ 135 uint16_t e4fs_mmpintv; /* number of seconds to wait in MMP checking */ 136 uint64_t e4fs_mmpblk; /* block for multi-mount protection */ 137 uint32_t e4fs_raid_stripe_wid;/* blocks on all data disks (N * stride) */ 138 uint8_t e4fs_log_gpf; /* FLEX_BG group size */ 139 uint8_t e4fs_char_pad2; 140 uint16_t e4fs_pad; --- 68 unchanged lines hidden (view full) --- 209 */ 210#define EXT2F_COMPAT_PREALLOC 0x0001 211#define EXT2F_COMPAT_HASJOURNAL 0x0004 212#define EXT2F_COMPAT_RESIZE 0x0010 213 214#define EXT2F_ROCOMPAT_SPARSESUPER 0x0001 215#define EXT2F_ROCOMPAT_LARGEFILE 0x0002 216#define EXT2F_ROCOMPAT_BTREE_DIR 0x0004 |
217#define EXT4F_ROCOMPAT_EXTRA_ISIZE 0x0040 |
|
217 218#define EXT2F_INCOMPAT_COMP 0x0001 219#define EXT2F_INCOMPAT_FTYPE 0x0002 220 221/* 222 * Features supported in this implementation 223 * 224 * We support the following REV1 features: 225 * - EXT2F_ROCOMPAT_SPARSESUPER 226 * - EXT2F_ROCOMPAT_LARGEFILE 227 * - EXT2F_INCOMPAT_FTYPE 228 */ 229#define EXT2F_COMPAT_SUPP 0x0000 | 218 219#define EXT2F_INCOMPAT_COMP 0x0001 220#define EXT2F_INCOMPAT_FTYPE 0x0002 221 222/* 223 * Features supported in this implementation 224 * 225 * We support the following REV1 features: 226 * - EXT2F_ROCOMPAT_SPARSESUPER 227 * - EXT2F_ROCOMPAT_LARGEFILE 228 * - EXT2F_INCOMPAT_FTYPE 229 */ 230#define EXT2F_COMPAT_SUPP 0x0000 |
230#define EXT2F_ROCOMPAT_SUPP (EXT2F_ROCOMPAT_SPARSESUPER \ 231 | EXT2F_ROCOMPAT_LARGEFILE) | 231#define EXT2F_ROCOMPAT_SUPP (EXT2F_ROCOMPAT_SPARSESUPER | \ 232 EXT2F_ROCOMPAT_LARGEFILE | \ 233 EXT4F_ROCOMPAT_EXTRA_ISIZE) |
232#define EXT2F_INCOMPAT_SUPP EXT2F_INCOMPAT_FTYPE 233 234/* Assume that user mode programs are passing in an ext2fs superblock, not 235 * a kernel struct super_block. This will allow us to call the feature-test 236 * macros from user land. */ 237#define EXT2_SB(sb) (sb) 238 239/* --- 115 unchanged lines hidden --- | 234#define EXT2F_INCOMPAT_SUPP EXT2F_INCOMPAT_FTYPE 235 236/* Assume that user mode programs are passing in an ext2fs superblock, not 237 * a kernel struct super_block. This will allow us to call the feature-test 238 * macros from user land. */ 239#define EXT2_SB(sb) (sb) 240 241/* --- 115 unchanged lines hidden --- |