Lines Matching full:group

18  * Return the group # of a block
27 * Return the first block (inclusive) in a group
29 blk64_t ext2fs_group_first_block2(ext2_filsys fs, dgrp_t group) in ext2fs_group_first_block2() argument
32 EXT2_GROUPS_TO_BLOCKS(fs->super, group); in ext2fs_group_first_block2()
36 * Return the last block (inclusive) in a group
38 blk64_t ext2fs_group_last_block2(ext2_filsys fs, dgrp_t group) in ext2fs_group_last_block2() argument
40 return (group == fs->group_desc_count - 1 ? in ext2fs_group_last_block2()
42 ext2fs_group_first_block2(fs, group) + in ext2fs_group_last_block2()
47 * Return the number of blocks in a group
49 int ext2fs_group_blocks_count(ext2_filsys fs, dgrp_t group) in ext2fs_group_blocks_count() argument
53 if (group == fs->group_desc_count - 1) { in ext2fs_group_blocks_count()
179 * Get a pointer to a block group descriptor. We need the explicit
180 * pointer to the group desc for code that swaps block group
186 dgrp_t group) in ext2fs_group_desc() argument
190 return (struct ext2_group_desc *)((char *)gdp + group * desc_size); in ext2fs_group_desc()
193 /* Do the same but as an ext4 group desc for internal use here */
196 dgrp_t group) in ext4fs_group_desc() argument
198 return (struct ext4_group_desc *)ext2fs_group_desc(fs, gdp, group); in ext4fs_group_desc()
202 * Return the block bitmap checksum of a group
204 __u32 ext2fs_block_bitmap_checksum(ext2_filsys fs, dgrp_t group) in ext2fs_block_bitmap_checksum() argument
209 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_block_bitmap_checksum()
217 * Return the block bitmap block of a group
219 blk64_t ext2fs_block_bitmap_loc(ext2_filsys fs, dgrp_t group) in ext2fs_block_bitmap_loc() argument
223 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_block_bitmap_loc()
230 * Set the block bitmap block of a group
232 void ext2fs_block_bitmap_loc_set(ext2_filsys fs, dgrp_t group, blk64_t blk) in ext2fs_block_bitmap_loc_set() argument
236 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_block_bitmap_loc_set()
243 * Return the inode bitmap checksum of a group
245 __u32 ext2fs_inode_bitmap_checksum(ext2_filsys fs, dgrp_t group) in ext2fs_inode_bitmap_checksum() argument
250 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_inode_bitmap_checksum()
258 * Return the inode bitmap block of a group
260 blk64_t ext2fs_inode_bitmap_loc(ext2_filsys fs, dgrp_t group) in ext2fs_inode_bitmap_loc() argument
264 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_inode_bitmap_loc()
271 * Set the inode bitmap block of a group
273 void ext2fs_inode_bitmap_loc_set(ext2_filsys fs, dgrp_t group, blk64_t blk) in ext2fs_inode_bitmap_loc_set() argument
277 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_inode_bitmap_loc_set()
284 * Return the inode table block of a group
286 blk64_t ext2fs_inode_table_loc(ext2_filsys fs, dgrp_t group) in ext2fs_inode_table_loc() argument
290 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_inode_table_loc()
297 * Set the inode table block of a group
299 void ext2fs_inode_table_loc_set(ext2_filsys fs, dgrp_t group, blk64_t blk) in ext2fs_inode_table_loc_set() argument
303 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_inode_table_loc_set()
310 * Return the free blocks count of a group
312 __u32 ext2fs_bg_free_blocks_count(ext2_filsys fs, dgrp_t group) in ext2fs_bg_free_blocks_count() argument
316 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_free_blocks_count()
323 * Set the free blocks count of a group
325 void ext2fs_bg_free_blocks_count_set(ext2_filsys fs, dgrp_t group, __u32 n) in ext2fs_bg_free_blocks_count_set() argument
329 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_free_blocks_count_set()
337 * Return the free inodes count of a group
339 __u32 ext2fs_bg_free_inodes_count(ext2_filsys fs, dgrp_t group) in ext2fs_bg_free_inodes_count() argument
343 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_free_inodes_count()
350 * Set the free inodes count of a group
352 void ext2fs_bg_free_inodes_count_set(ext2_filsys fs, dgrp_t group, __u32 n) in ext2fs_bg_free_inodes_count_set() argument
356 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_free_inodes_count_set()
363 * Return the used dirs count of a group
365 __u32 ext2fs_bg_used_dirs_count(ext2_filsys fs, dgrp_t group) in ext2fs_bg_used_dirs_count() argument
369 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_used_dirs_count()
376 * Set the used dirs count of a group
378 void ext2fs_bg_used_dirs_count_set(ext2_filsys fs, dgrp_t group, __u32 n) in ext2fs_bg_used_dirs_count_set() argument
382 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_used_dirs_count_set()
389 * Return the unused inodes count of a group
391 __u32 ext2fs_bg_itable_unused(ext2_filsys fs, dgrp_t group) in ext2fs_bg_itable_unused() argument
395 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_itable_unused()
402 * Set the unused inodes count of a group
404 void ext2fs_bg_itable_unused_set(ext2_filsys fs, dgrp_t group, __u32 n) in ext2fs_bg_itable_unused_set() argument
408 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_itable_unused_set()
415 * Get the flags for this block group
417 __u16 ext2fs_bg_flags(ext2_filsys fs, dgrp_t group) in ext2fs_bg_flags() argument
421 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_flags()
426 * Zero out the flags for this block group
428 void ext2fs_bg_flags_zap(ext2_filsys fs, dgrp_t group) in ext2fs_bg_flags_zap() argument
432 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_flags_zap()
438 * Get the value of a particular flag for this block group
440 int ext2fs_bg_flags_test(ext2_filsys fs, dgrp_t group, __u16 bg_flag) in ext2fs_bg_flags_test() argument
444 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_flags_test()
449 * Set a flag or set of flags for this block group
451 void ext2fs_bg_flags_set(ext2_filsys fs, dgrp_t group, __u16 bg_flags) in ext2fs_bg_flags_set() argument
455 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_flags_set()
461 * Clear a flag or set of flags for this block group
463 void ext2fs_bg_flags_clear(ext2_filsys fs, dgrp_t group, __u16 bg_flags) in ext2fs_bg_flags_clear() argument
467 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_flags_clear()
473 * Get the checksum for this block group
475 __u16 ext2fs_bg_checksum(ext2_filsys fs, dgrp_t group) in ext2fs_bg_checksum() argument
479 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_checksum()
484 * Set the checksum for this block group to a previously calculated value
486 void ext2fs_bg_checksum_set(ext2_filsys fs, dgrp_t group, __u16 checksum) in ext2fs_bg_checksum_set() argument
490 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_checksum_set()