• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching full:group

17  * Return the group # of a block
26 * Return the first block (inclusive) in a group
28 blk64_t ext2fs_group_first_block2(ext2_filsys fs, dgrp_t group) in ext2fs_group_first_block2() argument
31 ((blk64_t)group * fs->super->s_blocks_per_group); in ext2fs_group_first_block2()
35 * Return the last block (inclusive) in a group
37 blk64_t ext2fs_group_last_block2(ext2_filsys fs, dgrp_t group) in ext2fs_group_last_block2() argument
39 return (group == fs->group_desc_count - 1 ? in ext2fs_group_last_block2()
41 ext2fs_group_first_block2(fs, group) + in ext2fs_group_last_block2()
46 * Return the number of blocks in a group
48 int ext2fs_group_blocks_count(ext2_filsys fs, dgrp_t group) in ext2fs_group_blocks_count() argument
52 if (group == fs->group_desc_count - 1) { in ext2fs_group_blocks_count()
180 * Get a pointer to a block group descriptor. We need the explicit
181 * pointer to the group desc for code that swaps block group
187 dgrp_t group) in ext2fs_group_desc() argument
190 group * EXT2_DESC_SIZE(fs->super)); 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 block of a group
204 blk64_t ext2fs_block_bitmap_loc(ext2_filsys fs, dgrp_t group) in ext2fs_block_bitmap_loc() argument
208 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_block_bitmap_loc()
216 * Set the block bitmap block of a group
218 void ext2fs_block_bitmap_loc_set(ext2_filsys fs, dgrp_t group, blk64_t blk) in ext2fs_block_bitmap_loc_set() argument
222 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_block_bitmap_loc_set()
229 * Return the inode bitmap block of a group
231 blk64_t ext2fs_inode_bitmap_loc(ext2_filsys fs, dgrp_t group) in ext2fs_inode_bitmap_loc() argument
235 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_inode_bitmap_loc()
243 * Set the inode bitmap block of a group
245 void ext2fs_inode_bitmap_loc_set(ext2_filsys fs, dgrp_t group, blk64_t blk) in ext2fs_inode_bitmap_loc_set() argument
249 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_inode_bitmap_loc_set()
256 * Return the inode table block of a group
258 blk64_t ext2fs_inode_table_loc(ext2_filsys fs, dgrp_t group) in ext2fs_inode_table_loc() argument
262 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_inode_table_loc()
270 * Set the inode table block of a group
272 void ext2fs_inode_table_loc_set(ext2_filsys fs, dgrp_t group, blk64_t blk) in ext2fs_inode_table_loc_set() argument
276 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_inode_table_loc_set()
283 * Return the free blocks count of a group
285 __u32 ext2fs_bg_free_blocks_count(ext2_filsys fs, dgrp_t group) in ext2fs_bg_free_blocks_count() argument
289 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_free_blocks_count()
297 * Set the free blocks count of a group
299 void ext2fs_bg_free_blocks_count_set(ext2_filsys fs, dgrp_t group, __u32 n) in ext2fs_bg_free_blocks_count_set() argument
303 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_free_blocks_count_set()
311 * Return the free inodes count of a group
313 __u32 ext2fs_bg_free_inodes_count(ext2_filsys fs, dgrp_t group) in ext2fs_bg_free_inodes_count() argument
317 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_free_inodes_count()
325 * Set the free inodes count of a group
327 void ext2fs_bg_free_inodes_count_set(ext2_filsys fs, dgrp_t group, __u32 n) in ext2fs_bg_free_inodes_count_set() argument
331 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_free_inodes_count_set()
338 * Return the used dirs count of a group
340 __u32 ext2fs_bg_used_dirs_count(ext2_filsys fs, dgrp_t group) in ext2fs_bg_used_dirs_count() argument
344 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_used_dirs_count()
352 * Set the used dirs count of a group
354 void ext2fs_bg_used_dirs_count_set(ext2_filsys fs, dgrp_t group, __u32 n) in ext2fs_bg_used_dirs_count_set() argument
358 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_used_dirs_count_set()
365 * Return the unused inodes count of a group
367 __u32 ext2fs_bg_itable_unused(ext2_filsys fs, dgrp_t group) in ext2fs_bg_itable_unused() argument
371 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_itable_unused()
379 * Set the unused inodes count of a group
381 void ext2fs_bg_itable_unused_set(ext2_filsys fs, dgrp_t group, __u32 n) in ext2fs_bg_itable_unused_set() argument
385 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_itable_unused_set()
392 * Get the flags for this block group
394 __u16 ext2fs_bg_flags(ext2_filsys fs, dgrp_t group) in ext2fs_bg_flags() argument
398 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_flags()
403 * Zero out the flags for this block group
405 void ext2fs_bg_flags_zap(ext2_filsys fs, dgrp_t group) in ext2fs_bg_flags_zap() argument
409 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_flags_zap()
415 * Get the value of a particular flag for this block group
417 int ext2fs_bg_flags_test(ext2_filsys fs, dgrp_t group, __u16 bg_flag) in ext2fs_bg_flags_test() argument
421 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_flags_test()
426 * Set a flag or set of flags for this block group
428 void ext2fs_bg_flags_set(ext2_filsys fs, dgrp_t group, __u16 bg_flags) in ext2fs_bg_flags_set() argument
432 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_flags_set()
438 * Clear a flag or set of flags for this block group
440 void ext2fs_bg_flags_clear(ext2_filsys fs, dgrp_t group, __u16 bg_flags) in ext2fs_bg_flags_clear() argument
444 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_flags_clear()
450 * Get the checksum for this block group
452 __u16 ext2fs_bg_checksum(ext2_filsys fs, dgrp_t group) in ext2fs_bg_checksum() argument
456 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_checksum()
461 * Set the checksum for this block group to a previously calculated value
463 void ext2fs_bg_checksum_set(ext2_filsys fs, dgrp_t group, __u16 checksum) in ext2fs_bg_checksum_set() argument
467 gdp = ext4fs_group_desc(fs, fs->group_desc, group); in ext2fs_bg_checksum_set()