Lines Matching refs:newfile
1578 static errcode_t copy_file(int fd, ext2_ino_t newfile, int bufsize, int make_holes)
1589 retval = ext2fs_file_open(current_fs, newfile,
1659 ext2_ino_t newfile;
1680 retval = ext2fs_namei(current_fs, root, cwd, argv[2], &newfile);
1687 retval = ext2fs_new_inode(current_fs, cwd, 010755, 0, &newfile);
1693 printf("Allocated inode: %u\n", newfile);
1694 retval = ext2fs_link(current_fs, cwd, argv[2], newfile,
1703 retval = ext2fs_link(current_fs, cwd, argv[2], newfile,
1711 if (ext2fs_test_inode_bitmap2(current_fs->inode_map,newfile))
1713 ext2fs_inode_alloc_stats2(current_fs, newfile, +1, 0);
1734 if (debugfs_write_new_inode(newfile, &inode, argv[0])) {
1747 retval = copy_file(fd, newfile, bufsize, make_holes);
1757 ext2_ino_t newfile;
1800 retval = ext2fs_new_inode(current_fs, cwd, 010755, 0, &newfile);
1805 printf("Allocated inode: %u\n", newfile);
1806 retval = ext2fs_link(current_fs, cwd, argv[1], newfile, filetype);
1813 retval = ext2fs_link(current_fs, cwd, argv[1], newfile,
1820 if (ext2fs_test_inode_bitmap2(current_fs->inode_map,newfile))
1822 ext2fs_inode_alloc_stats2(current_fs, newfile, +1, 0);
1835 if (debugfs_write_new_inode(newfile, &inode, argv[0]))