Lines Matching refs:subvol_id
433 int btrfs_subvol_get_info_fd(int fd, uint64_t subvol_id, BtrfsSubvolInfo *ret) { in btrfs_subvol_get_info_fd() argument
456 if (subvol_id == 0) { in btrfs_subvol_get_info_fd()
457 r = btrfs_subvol_get_id_fd(fd, &subvol_id); in btrfs_subvol_get_info_fd()
468 args.key.min_objectid = args.key.max_objectid = subvol_id; in btrfs_subvol_get_info_fd()
488 if (sh->objectid != subvol_id) in btrfs_subvol_get_info_fd()
502 ret->subvol_id = subvol_id; in btrfs_subvol_get_info_fd()
649 int btrfs_subvol_find_subtree_qgroup(int fd, uint64_t subvol_id, uint64_t *ret) { in btrfs_subvol_find_subtree_qgroup() argument
666 if (subvol_id == 0) { in btrfs_subvol_find_subtree_qgroup()
667 r = btrfs_subvol_get_id_fd(fd, &subvol_id); in btrfs_subvol_find_subtree_qgroup()
672 r = btrfs_qgroupid_split(subvol_id, &level, NULL); in btrfs_subvol_find_subtree_qgroup()
678 n = btrfs_qgroup_find_parents(fd, subvol_id, &qgroups); in btrfs_subvol_find_subtree_qgroup()
689 if (id != subvol_id) in btrfs_subvol_find_subtree_qgroup()
703 *ret = subvol_id; in btrfs_subvol_find_subtree_qgroup()
711 int btrfs_subvol_get_subtree_quota_fd(int fd, uint64_t subvol_id, BtrfsQuotaInfo *ret) { in btrfs_subvol_get_subtree_quota_fd() argument
725 r = btrfs_subvol_find_subtree_qgroup(fd, subvol_id, &qgroupid); in btrfs_subvol_get_subtree_quota_fd()
732 int btrfs_subvol_get_subtree_quota(const char *path, uint64_t subvol_id, BtrfsQuotaInfo *ret) { in btrfs_subvol_get_subtree_quota() argument
739 return btrfs_subvol_get_subtree_quota_fd(fd, subvol_id, ret); in btrfs_subvol_get_subtree_quota()
830 int btrfs_subvol_set_subtree_quota_limit_fd(int fd, uint64_t subvol_id, uint64_t referenced_max) { in btrfs_subvol_set_subtree_quota_limit_fd() argument
836 r = btrfs_subvol_find_subtree_qgroup(fd, subvol_id, &qgroupid); in btrfs_subvol_set_subtree_quota_limit_fd()
843 int btrfs_subvol_set_subtree_quota_limit(const char *path, uint64_t subvol_id, uint64_t referenced_… in btrfs_subvol_set_subtree_quota_limit() argument
850 return btrfs_subvol_set_subtree_quota_limit_fd(fd, subvol_id, referenced_max); in btrfs_subvol_set_subtree_quota_limit()
926 uint64_t subvol_id; in btrfs_qgroup_destroy_recursive() local
934 r = btrfs_qgroupid_split(qgroupid, NULL, &subvol_id); in btrfs_qgroup_destroy_recursive()
953 if (id != subvol_id) in btrfs_qgroup_destroy_recursive()
1033 static int subvol_remove_children(int fd, const char *subvolume, uint64_t subvol_id, BtrfsRemoveFla… in subvol_remove_children() argument
1078 if (subvol_id == 0) { in subvol_remove_children()
1079 r = btrfs_subvol_get_id_fd(subvol_fd, &subvol_id); in subvol_remove_children()
1088 …(void) btrfs_qgroup_destroy_recursive(fd, subvol_id); /* for the leaf subvolumes, the qgroup id is… in subvol_remove_children()
1097 args.key.min_offset = args.key.max_offset = subvol_id; in subvol_remove_children()
1118 if (sh->offset != subvol_id) in subvol_remove_children()
1128 .treeid = subvol_id, in subvol_remove_children()
1174 (void) btrfs_qgroup_destroy_recursive(fd, subvol_id); in subvol_remove_children()
1759 int btrfs_subvol_auto_qgroup_fd(int fd, uint64_t subvol_id, bool insert_intermediary_qgroup) { in btrfs_subvol_auto_qgroup_fd() argument
1804 if (subvol_id == 0) { in btrfs_subvol_auto_qgroup_fd()
1811 r = btrfs_subvol_get_id_fd(fd, &subvol_id); in btrfs_subvol_auto_qgroup_fd()
1816 n = btrfs_qgroup_find_parents(fd, subvol_id, &qgroups); in btrfs_subvol_auto_qgroup_fd()
1824 r = btrfs_subvol_get_parent(fd, subvol_id, &parent_subvol); in btrfs_subvol_auto_qgroup_fd()
1857 r = btrfs_qgroupid_make(lowest - 1, subvol_id, &new_qgroupid); in btrfs_subvol_auto_qgroup_fd()
1880 r = btrfs_qgroup_assign(fd, subvol_id, new_qgroupid); in btrfs_subvol_auto_qgroup_fd()
1895 r = btrfs_qgroup_assign(fd, subvol_id, qgroups[i]); in btrfs_subvol_auto_qgroup_fd()
1906 int btrfs_subvol_auto_qgroup(const char *path, uint64_t subvol_id, bool create_intermediary_qgroup)… in btrfs_subvol_auto_qgroup() argument
1913 return btrfs_subvol_auto_qgroup_fd(fd, subvol_id, create_intermediary_qgroup); in btrfs_subvol_auto_qgroup()
1916 int btrfs_subvol_get_parent(int fd, uint64_t subvol_id, uint64_t *ret) { in btrfs_subvol_get_parent() argument
1938 if (subvol_id == 0) { in btrfs_subvol_get_parent()
1939 r = btrfs_subvol_get_id_fd(fd, &subvol_id); in btrfs_subvol_get_parent()
1950 args.key.min_objectid = args.key.max_objectid = subvol_id; in btrfs_subvol_get_parent()
1967 if (sh->objectid != subvol_id) in btrfs_subvol_get_parent()