Home
last modified time | relevance | path

Searched refs:F2FS_BLKSIZE (Results 1 – 7 of 7) sorted by relevance

/external/f2fs-tools/lib/
Dlibf2fs_io.c69 return dev_write(buf, blk_addr * F2FS_BLKSIZE, F2FS_BLKSIZE); in dev_write_block()
95 return dev_read(buf, blk_addr * F2FS_BLKSIZE, F2FS_BLKSIZE); in dev_read_block()
100 return dev_read(buf, addr * F2FS_BLKSIZE, nr_blks * F2FS_BLKSIZE); in dev_read_blocks()
105 return dev_readahead(blk_addr * F2FS_BLKSIZE, F2FS_BLKSIZE); in dev_reada_block()
/external/f2fs-tools/mkfs/
Df2fs_format.c202 2 * F2FS_BLKSIZE + zone_size_bytes - 1) / in f2fs_prepare_super_block()
450 cp = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack()
456 sum = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack()
462 sum_compact = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack()
469 cp_payload = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack()
706 zero_buff = calloc(F2FS_BLKSIZE, 1); in f2fs_write_super_block()
712 if (dev_write(zero_buff, index * F2FS_BLKSIZE, F2FS_BLKSIZE)) { in f2fs_write_super_block()
730 raw_node = calloc(F2FS_BLKSIZE, 1); in f2fs_write_root_inode()
779 if (dev_write(raw_node, main_area_node_seg_blk_offset, F2FS_BLKSIZE)) { in f2fs_write_root_inode()
794 if (dev_write(raw_node, main_area_node_seg_blk_offset, F2FS_BLKSIZE)) { in f2fs_write_root_inode()
[all …]
/external/f2fs-tools/fsck/
Ddump.c121 char buf[F2FS_BLKSIZE]; in dump_data_blk()
128 memset(buf, 0, F2FS_BLKSIZE); in dump_data_blk()
136 dev_write_dump(buf, offset, F2FS_BLKSIZE); in dump_data_blk()
174 dump_data_blk(*ofs * F2FS_BLKSIZE, in dump_node_blk()
208 dump_data_blk(ofs * F2FS_BLKSIZE, in dump_inode_blk()
Dmount.c215 if (F2FS_BLKSIZE != PAGE_CACHE_SIZE) { in sanity_check_raw_super()
220 if (F2FS_BLKSIZE != blocksize) { in sanity_check_raw_super()
248 offset = F2FS_BLKSIZE + F2FS_SUPER_OFFSET; in validate_super_block()
628 node_blk = malloc(F2FS_BLKSIZE); in restore_node_summary()
Df2fs.h227 return ((char *)ckpt + F2FS_BLKSIZE); in __bitmap_ptr()
Dfsck.c1008 ret = dev_write_block(((unsigned char *)ckp) + i * F2FS_BLKSIZE, in fix_checkpoint()
/external/f2fs-tools/include/
Df2fs_fs.h294 #define F2FS_BLKSIZE 4096 /* support only 4KB block */ macro
296 #define F2FS_BLK_ALIGN(x) (((x) + F2FS_BLKSIZE - 1) / F2FS_BLKSIZE)
612 #define SUM_JOURNAL_SIZE (F2FS_BLKSIZE - SUM_FOOTER_SIZE -\