Home
last modified time | relevance | path

Searched refs:zero_buf (Results 1 – 2 of 2) sorted by relevance

/external/e2fsprogs/lib/ext2fs/
Dimager.c282 char zero_buf[1024]; in ext2fs_image_bitmap_write() local
315 memset(zero_buf, 0, sizeof(zero_buf)); in ext2fs_image_bitmap_write()
320 if (c > (int) sizeof(zero_buf)) in ext2fs_image_bitmap_write()
321 c = sizeof(zero_buf); in ext2fs_image_bitmap_write()
322 actual = write(fd, zero_buf, c); in ext2fs_image_bitmap_write()
/external/e2fsprogs/misc/
De2image.c401 char *buf, *zero_buf; in output_meta_data_blocks() local
409 zero_buf = malloc(fs->blocksize); in output_meta_data_blocks()
410 if (!zero_buf) { in output_meta_data_blocks()
414 memset(zero_buf, 0, fs->blocksize); in output_meta_data_blocks()
433 write_block(fd, zero_buf, 0, in output_meta_data_blocks()
445 write_block(fd, zero_buf, sparse-1, 1, -1); in output_meta_data_blocks()
446 free(zero_buf); in output_meta_data_blocks()