Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:bmap

225 				       ext2fs_generic_bitmap bmap)
231 if (!bmap || (bmap->magic != magic))
238 if (new_end > bmap->end) {
239 bitno = bmap->real_end;
242 for (; bitno > bmap->end; bitno--)
243 ext2fs_clear_bit(bitno - bmap->start, bmap->bitmap);
245 if (new_real_end == bmap->real_end) {
246 bmap->end = new_end;
250 size = ((bmap->real_end - bmap->start) / 8) + 1;
251 new_size = ((new_real_end - bmap->start) / 8) + 1;
254 retval = ext2fs_resize_mem(size, new_size, &bmap->bitmap);
259 memset(bmap->bitmap + size, 0, new_size - size);
261 bmap->end = new_end;
262 bmap->real_end = new_real_end;
302 errcode_t ext2fs_get_generic_bitmap_range(ext2fs_generic_bitmap bmap,
307 if (!bmap || (bmap->magic != magic))
310 if ((start < bmap->start) || (start+num-1 > bmap->real_end))
313 memcpy(out, bmap->bitmap + (start >> 3), (num+7) >> 3);
317 errcode_t ext2fs_set_generic_bitmap_range(ext2fs_generic_bitmap bmap,
322 if (!bmap || (bmap->magic != magic))
325 if ((start < bmap->start) || (start+num-1 > bmap->real_end))
328 memcpy(bmap->bitmap + (start >> 3), in, (num+7) >> 3);