Home
last modified time | relevance | path

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

/external/f2fs-tools/mkfs/
Df2fs_format.c827 u_int8_t *zero_buff; in f2fs_write_super_block() local
829 zero_buff = calloc(F2FS_BLKSIZE, 1); in f2fs_write_super_block()
831 memcpy(zero_buff + F2FS_SUPER_OFFSET, sb, sizeof(*sb)); in f2fs_write_super_block()
834 if (dev_write_block(zero_buff, index)) { in f2fs_write_super_block()
837 free(zero_buff); in f2fs_write_super_block()
842 free(zero_buff); in f2fs_write_super_block()
/external/f2fs-tools/fsck/
Dmount.c2070 u_int8_t *zero_buff; in check_sector_size() local
2079 zero_buff = calloc(F2FS_BLKSIZE, 1); in check_sector_size()
2080 ASSERT(zero_buff); in check_sector_size()
2085 memcpy(zero_buff + F2FS_SUPER_OFFSET, sb, sizeof(*sb)); in check_sector_size()
2088 if (dev_write(zero_buff, index * F2FS_BLKSIZE, F2FS_BLKSIZE)) { in check_sector_size()
2091 free(zero_buff); in check_sector_size()
2096 free(zero_buff); in check_sector_size()