Searched refs:zero_buff (Results 1 – 2 of 2) sorted by relevance
827 u_int8_t *zero_buff; in f2fs_write_super_block() local829 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()
2070 u_int8_t *zero_buff; in check_sector_size() local2079 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()