Lines Matching refs:subvol_fd
355 _cleanup_close_ int subvol_fd = -1; in btrfs_subvol_get_id() local
360 subvol_fd = openat(fd, subvol, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW); in btrfs_subvol_get_id()
361 if (subvol_fd < 0) in btrfs_subvol_get_id()
364 return btrfs_subvol_get_id_fd(subvol_fd, ret); in btrfs_subvol_get_id()
1048 _cleanup_close_ int subvol_fd = -1; in subvol_remove_children() local
1062 subvol_fd = openat(fd, subvolume, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW); in subvol_remove_children()
1063 if (subvol_fd < 0) in subvol_remove_children()
1072 r = btrfs_is_subvol_fd(subvol_fd); in subvol_remove_children()
1079 r = btrfs_subvol_get_id_fd(subvol_fd, &subvol_id); in subvol_remove_children()
1136 r = btrfs_subvol_set_read_only_fd(subvol_fd, false); in subvol_remove_children()
1146 r = subvol_remove_children(subvol_fd, p, sh->objectid, flags); in subvol_remove_children()
1154 … child_fd = openat(subvol_fd, ino_args.name, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW); in subvol_remove_children()