Searched refs:new_fd (Results 1 – 5 of 5) sorted by relevance
/systemd-251/src/import/ |
D | export-raw.c | 250 int new_fd, r; in reflink_snapshot() local 252 new_fd = open_parent(path, O_TMPFILE|O_CLOEXEC|O_RDWR, 0600); in reflink_snapshot() 253 if (new_fd < 0) { in reflink_snapshot() 260 new_fd = open(t, O_CLOEXEC|O_CREAT|O_NOCTTY|O_RDWR, 0600); in reflink_snapshot() 261 if (new_fd < 0) in reflink_snapshot() 267 r = btrfs_reflink(fd, new_fd); in reflink_snapshot() 269 safe_close(new_fd); in reflink_snapshot() 273 return new_fd; in reflink_snapshot()
|
/systemd-251/src/basic/ |
D | fd-util.c | 720 int new_fd, r; in fd_reopen() local 732 new_fd = openat(fd, ".", flags); in fd_reopen() 733 if (new_fd < 0) in fd_reopen() 736 return new_fd; in fd_reopen() 739 new_fd = open(FORMAT_PROC_FD_PATH(fd), flags); in fd_reopen() 740 if (new_fd < 0) { in fd_reopen() 753 return new_fd; in fd_reopen()
|
D | fs-util.c | 832 _cleanup_close_ int old_fd = -1, new_fd = -1; in conservative_renameat() local 846 new_fd = openat(newdirfd, newpath, O_CLOEXEC|O_RDONLY|O_NOCTTY|O_NOFOLLOW); in conservative_renameat() 847 if (new_fd < 0) in conservative_renameat() 856 if (fstat(new_fd, &new_stat) < 0) in conservative_renameat() 880 l2 = read(new_fd, buf2, l1); in conservative_renameat() 889 l2 = read(new_fd, buf2, l1 + 1); in conservative_renameat()
|
/systemd-251/src/test/ |
D | test-fd-util.c | 104 int original_stdin, new_fd; in TEST() local 110 new_fd = open("/dev/null", O_RDONLY); in TEST() 111 assert_se(new_fd == 0); in TEST() 113 new_fd = fd_move_above_stdio(new_fd); in TEST() 114 assert_se(new_fd >= 3); in TEST() 118 assert_se(close_nointr(new_fd) != EBADF); in TEST()
|
/systemd-251/src/shared/ |
D | btrfs-util.c | 1391 int new_fd, in subvol_snapshot_children() argument 1418 assert(new_fd >= 0); in subvol_snapshot_children() 1423 if (ioctl(new_fd, BTRFS_IOC_SNAP_CREATE_V2, &vol_args) < 0) in subvol_snapshot_children() 1436 r = btrfs_subvol_get_id(new_fd, vol_args.name, &new_subvol_id); in subvol_snapshot_children() 1441 (void) copy_quota_hierarchy(new_fd, old_subvol_id, new_subvol_id); in subvol_snapshot_children() 1446 (void) copy_subtree_quota_limits(new_fd, old_subvol_id, new_subvol_id); in subvol_snapshot_children() 1509 … new_child_fd = openat(new_fd, np, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW); in subvol_snapshot_children() 1520 … subvolume_fd = openat(new_fd, subvolume, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW); in subvol_snapshot_children() 1564 (void) copy_subtree_quota_limits(new_fd, old_subvol_id, new_subvol_id); in subvol_snapshot_children() 1577 _cleanup_close_ int new_fd = -1; in btrfs_subvol_snapshot_fd_full() local [all …]
|