Lines Matching refs:blocksize

97 	offset = blockcnt * fs->blocksize;  in fill_dir_block()
98 if (offset + fs->blocksize > fd->inode->i_size) { in fill_dir_block()
104 memset(dir, 0, fs->blocksize); in fill_dir_block()
106 (void) ext2fs_set_rec_len(fs, fs->blocksize, dirent); in fill_dir_block()
118 while (dir_offset < fs->blocksize) { in fill_dir_block()
121 if (((dir_offset + rec_len) > fs->blocksize) || in fill_dir_block()
229 new_mem = realloc(outdir->buf, blocks * fs->blocksize); in alloc_size_dir()
239 outdir->buf = malloc(blocks * fs->blocksize); in alloc_size_dir()
265 *ret = outdir->buf + (outdir->num++ * fs->blocksize); in get_next_block()
266 memset(*ret, 0, fs->blocksize); in get_next_block()
421 (fd->dir_size / fs->blocksize) + 2); in copy_dir_entries()
433 left = fs->blocksize; in copy_dir_entries()
435 (fs->blocksize * ctx->htree_slack_percentage)/100; in copy_dir_entries()
455 left = fs->blocksize - offset; in copy_dir_entries()
500 memset(buf, 0, fs->blocksize); in set_root_node()
511 dir->rec_len = fs->blocksize - 12; in set_root_node()
521 limits->limit = (fs->blocksize - 32) / sizeof(struct ext2_dx_entry); in set_root_node()
533 memset(buf, 0, fs->blocksize); in set_int_node()
536 (void) ext2fs_set_rec_len(fs, fs->blocksize, dir); in set_int_node()
539 limits->limit = (fs->blocksize - 8) / sizeof(struct ext2_dx_entry); in set_int_node()
667 dir = wd->outdir->buf + (blockcnt * fs->blocksize); in write_dir_block()
703 inode.i_size = outdir->num * fs->blocksize; in write_directory()
743 (inode.i_size / fs->blocksize) < 2) in e2fsck_rehash_dir()
760 if (!fd.compress && (fd.dir_size < (fs->blocksize - 24))) { in e2fsck_rehash_dir()