Lines Matching refs:subvolume
55 static int extract_subvolume_name(const char *path, const char **subvolume) { in extract_subvolume_name() argument
60 assert(subvolume); in extract_subvolume_name()
68 *subvolume = fn; in extract_subvolume_name()
100 int btrfs_subvol_make_fd(int fd, const char *subvolume) { in btrfs_subvol_make_fd() argument
105 assert(subvolume); in btrfs_subvol_make_fd()
107 r = validate_subvolume_name(subvolume); in btrfs_subvol_make_fd()
125 strncpy(args.name, subvolume, sizeof(args.name)-1); in btrfs_subvol_make_fd()
132 const char *subvolume; in btrfs_subvol_make() local
137 r = extract_subvolume_name(path, &subvolume); in btrfs_subvol_make()
145 return btrfs_subvol_make_fd(fd, subvolume); in btrfs_subvol_make()
1033 static int subvol_remove_children(int fd, const char *subvolume, uint64_t subvol_id, BtrfsRemoveFla… in subvol_remove_children() argument
1054 assert(subvolume); in subvol_remove_children()
1062 subvol_fd = openat(fd, subvolume, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW); in subvol_remove_children()
1086 strncpy(vol_args.name, subvolume, sizeof(vol_args.name)-1); in subvol_remove_children()
1180 const char *subvolume; in btrfs_subvol_remove() local
1185 r = extract_subvolume_name(path, &subvolume); in btrfs_subvol_remove()
1193 return subvol_remove_children(fd, subvolume, 0, flags); in btrfs_subvol_remove()
1196 int btrfs_subvol_remove_fd(int fd, const char *subvolume, BtrfsRemoveFlags flags) { in btrfs_subvol_remove_fd() argument
1197 return subvol_remove_children(fd, subvolume, 0, flags); in btrfs_subvol_remove_fd()
1392 const char *subvolume, in subvol_snapshot_children() argument
1419 assert(subvolume); in subvol_snapshot_children()
1421 strncpy(vol_args.name, subvolume, sizeof(vol_args.name)-1); in subvol_snapshot_children()
1505 np = path_join(subvolume, ino_args.name); 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()
1578 const char *subvolume; in btrfs_subvol_snapshot_fd_full() local
1641 r = extract_subvolume_name(new_path, &subvolume); in btrfs_subvol_snapshot_fd_full()
1649 return subvol_snapshot_children(old_fd, new_fd, subvolume, 0, flags); in btrfs_subvol_snapshot_fd_full()