Lines Matching refs:new_path
1709 int btrfs_subvol_snapshot_fd(int old_fd, const char *new_path, BtrfsSnapshotFlags flags) {
1715 assert(new_path);
1724 r = btrfs_subvol_make(new_path);
1728 r = copy_directory_fd(old_fd, new_path, true);
1730 (void) btrfs_subvol_remove(new_path, BTRFS_REMOVE_QUOTA);
1735 r = btrfs_subvol_set_read_only(new_path, true);
1737 (void) btrfs_subvol_remove(new_path, BTRFS_REMOVE_QUOTA);
1745 r = extract_subvolume_name(new_path, &subvolume);
1749 new_fd = open_parent(new_path, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY);
1756 int btrfs_subvol_snapshot(const char *old_path, const char *new_path, BtrfsSnapshotFlags flags) {
1760 assert(new_path);
1766 return btrfs_subvol_snapshot_fd(old_fd, new_path, flags);