Home | History | Annotate | Download | only in ext2fs

Lines Matching full:bmap

41 #define EXT2FS_IS_32_BITMAP(bmap) \
42 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || \
43 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP) || \
44 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP))
46 #define EXT2FS_IS_64_BITMAP(bmap) \
47 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP64) || \
48 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP64) || \
49 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP64))
304 ext2fs_generic_bitmap bmap)
310 if (!bmap || (bmap->magic != magic))
317 if (new_end > bmap->end) {
318 bitno = bmap->real_end;
321 for (; bitno > bmap->end; bitno--)
322 ext2fs_clear_bit(bitno - bmap->start, bmap->bitmap);
324 if (new_real_end == bmap->real_end) {
325 bmap->end = new_end;
329 size = ((bmap->real_end - bmap->start) / 8) + 1;
330 new_size = ((new_real_end - bmap->start) / 8) + 1;
333 retval = ext2fs_resize_mem(size, new_size, &bmap->bitmap);
338 memset(bmap->bitmap + size, 0, new_size - size);
340 bmap->end = new_end;
341 bmap->real_end = new_real_end;
381 errcode_t ext2fs_get_generic_bitmap_range(ext2fs_generic_bitmap bmap,
386 if (!bmap || (bmap->magic != magic))
389 if ((start < bmap->start) || (start+num-1 > bmap->real_end))
392 memcpy(out, bmap->bitmap + (start >> 3), (num+7) >> 3);
396 errcode_t ext2fs_set_generic_bitmap_range(ext2fs_generic_bitmap bmap,
401 if (!bmap || (bmap->magic != magic))
404 if ((start < bmap->start) || (start+num-1 > bmap->real_end))
407 memcpy(bmap->bitmap + (start >> 3), in, (num+7) >> 3);