Lines Matching defs:newfile
1506 static errcode_t copy_file(int fd, ext2_ino_t newfile)
1515 retval = ext2fs_file_open(current_fs, newfile,
1552 ext2_ino_t newfile;
1571 retval = ext2fs_namei(current_fs, root, cwd, argv[2], &newfile);
1578 retval = ext2fs_new_inode(current_fs, cwd, 010755, 0, &newfile);
1584 printf("Allocated inode: %u\n", newfile);
1585 retval = ext2fs_link(current_fs, cwd, argv[2], newfile,
1594 retval = ext2fs_link(current_fs, cwd, argv[2], newfile,
1602 if (ext2fs_test_inode_bitmap(current_fs->inode_map,newfile))
1604 ext2fs_inode_alloc_stats2(current_fs, newfile, +1, 0);
1614 if (debugfs_write_new_inode(newfile, &inode, argv[0])) {
1619 retval = copy_file(fd, newfile);
1629 ext2_ino_t newfile;
1672 retval = ext2fs_new_inode(current_fs, cwd, 010755, 0, &newfile);
1677 printf("Allocated inode: %u\n", newfile);
1678 retval = ext2fs_link(current_fs, cwd, argv[1], newfile, filetype);
1685 retval = ext2fs_link(current_fs, cwd, argv[1], newfile,
1692 if (ext2fs_test_inode_bitmap(current_fs->inode_map,newfile))
1694 ext2fs_mark_inode_bitmap(current_fs->inode_map, newfile);
1708 if (debugfs_write_new_inode(newfile, &inode, argv[0]))