Searched refs:new_fd (Results 1 - 2 of 2) sorted by relevance

/systemd/src/import/
H A Dexport-raw.c266 int new_fd, r; local
271 new_fd = open(d, O_TMPFILE|O_CLOEXEC|O_NOCTTY|O_RDWR, 0600);
272 if (new_fd < 0) {
279 new_fd = open(t, O_CLOEXEC|O_CREAT|O_NOCTTY|O_RDWR, 0600);
280 if (new_fd < 0)
286 r = btrfs_reflink(fd, new_fd);
288 safe_close(new_fd);
292 return new_fd;
/systemd/src/basic/
H A Dbtrfs-util.c1529 static int subvol_snapshot_children(int old_fd, int new_fd, const char *subvolume, uint64_t old_subvol_id, BtrfsSnapshotFlags flags) { argument
1553 assert(new_fd >= 0);
1558 if (ioctl(new_fd, BTRFS_IOC_SNAP_CREATE_V2, &vol_args) < 0)
1571 r = btrfs_subvol_get_id(new_fd, vol_args.name, &new_subvol_id);
1576 (void) copy_quota_hierarchy(new_fd, old_subvol_id, new_subvol_id);
1581 (void) copy_subtree_quota_limits(new_fd, old_subvol_id, new_subvol_id);
1649 new_child_fd = openat(new_fd, np, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY);
1660 subvolume_fd = openat(new_fd, subvolume, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY);
1704 (void) copy_subtree_quota_limits(new_fd, old_subvol_id, new_subvol_id);
1710 _cleanup_close_ int new_fd local
[all...]

Completed in 482 milliseconds