Lines Matching full:dirbuf
520 static int recurse_dir(int fd, struct ext4_inode *inode, char *dirbuf, int dirsize, int mode)
572 read_block(fd, block_list[i], dirbuf + (i * info.block_size));
575 dirp = (struct ext4_dir_entry_2 *)dirbuf;
576 while (dirp < (struct ext4_dir_entry_2 *)(dirbuf + dirsize)) {
578 leftover_space = (char *)(dirbuf + dirsize) - (char *)dirp;
669 write_block(fd, block_list[i], dirbuf + (i * info.block_size));
691 char *dirbuf;
759 dirbuf = malloc(dirsize);
760 if (dirbuf == 0) {
761 critical_error("failed to allocate memory for dirbuf\n");
777 recurse_dir(fd, &root_inode, dirbuf, dirsize, SANITY_CHECK_PASS);
787 if (!recurse_dir(fd, &root_inode, dirbuf, dirsize, MARK_INODE_NUMS)) {
794 if (!recurse_dir(fd, &root_inode, dirbuf, dirsize, UPDATE_INODE_NUMS)) {