diff options
author | bde <bde@FreeBSD.org> | 2000-11-03 16:41:48 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2000-11-03 16:41:48 +0000 |
commit | 2041bf0212fa75c870a9a05751e8cb1e5e7d6ae8 (patch) | |
tree | b3e2046dc7d762fe0184285457f4afd054d39055 /sys/gnu/fs/ext2fs/ext2_extern.h | |
parent | a1750a380142dd6f26bd6d163514bb5f107d1a9b (diff) | |
download | FreeBSD-src-2041bf0212fa75c870a9a05751e8cb1e5e7d6ae8.zip FreeBSD-src-2041bf0212fa75c870a9a05751e8cb1e5e7d6ae8.tar.gz |
Support filesystems with the not-so-new "sparse_superblocks" feature.
When this feature is enabled, mke2fs doesn't necessarily allocate a
super block and its associated descriptor blocks for every group.
The (non-)allocations are reflected in the block bitmap. Since the
filesystem code doesn't write to these blocks except for the first
superblock, all it has to do to support them is to not count them in
ext2_statfs() and not attempt to check them at mount time in
ext2_check_blocks_bitmap() (the check has never been enabled in
FreeBSD anyway).
Diffstat (limited to 'sys/gnu/fs/ext2fs/ext2_extern.h')
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_extern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_extern.h b/sys/gnu/fs/ext2fs/ext2_extern.h index 317f540..b37b3ec 100644 --- a/sys/gnu/fs/ext2fs/ext2_extern.h +++ b/sys/gnu/fs/ext2fs/ext2_extern.h @@ -37,6 +37,7 @@ * SUCH DAMAGE. * * @(#)ffs_extern.h 8.3 (Berkeley) 4/16/94 + * $FreeBSD$ */ #ifndef _SYS_GNU_EXT2FS_EXT2_EXTERN_H_ @@ -78,6 +79,7 @@ int ext2_dirempty __P((struct inode *, ino_t, struct ucred *)); int ext2_checkpath __P((struct inode *, struct inode *, struct ucred *)); struct ext2_group_desc * get_group_desc __P((struct mount * , unsigned int , struct buf ** )); +int ext2_group_sparse __P((int group)); void ext2_discard_prealloc __P((struct inode *)); int ext2_inactive __P((struct vop_inactive_args *)); int ext2_new_block __P ((struct mount * mp, unsigned long goal, |