Lines Matching refs:fs
32 errcode_t ext2fs_check_desc(ext2_filsys fs)
35 blk_t first_block = fs->super->s_first_data_block;
38 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
40 for (i = 0; i < fs->group_desc_count; i++) {
41 first_block = ext2fs_group_first_block(fs, i);
42 last_block = ext2fs_group_last_block(fs, i);
48 if (fs->group_desc[i].bg_block_bitmap < first_block ||
49 fs->group_desc[i].bg_block_bitmap > last_block)
55 if (fs->group_desc[i].bg_inode_bitmap < first_block ||
56 fs->group_desc[i].bg_inode_bitmap > last_block)
62 if (fs->group_desc[i].bg_inode_table < first_block ||
63 ((fs->group_desc[i].bg_inode_table +
64 fs->inode_blocks_per_group - 1) > last_block))