Lines Matching defs:qgroups
684 _cleanup_free_ uint64_t *qgroups = NULL;
711 n = btrfs_qgroup_find_parents(fd, subvol_id, &qgroups);
718 r = btrfs_qgroupid_split(qgroups[i], &level, &id);
726 lowest_qgroupid = qgroups[i];
1068 _cleanup_free_ uint64_t *qgroups = NULL;
1074 * qgroups it is assgined to that have the same id part of the
1081 n = btrfs_qgroup_find_parents(fd, qgroupid, &qgroups);
1088 r = btrfs_qgroupid_split(qgroups[i], NULL, &id);
1092 r = btrfs_qgroup_unassign(fd, qgroupid, qgroups[i]);
1102 (void) btrfs_qgroup_destroy_recursive(fd, qgroups[i]);
1858 _cleanup_free_ uint64_t *qgroups = NULL;
1870 * leaf qgroup will be assigned to the same parent qgroups as
1889 * the same qgroups as the parent. However, if it is true, it
1914 n = btrfs_qgroup_find_parents(fd, subvol_id, &qgroups);
1917 if (n > 0) /* already parent qgroups set up, let's bail */
1920 qgroups = mfree(qgroups);
1929 n = btrfs_qgroup_find_parents(fd, parent_subvol, &qgroups);
1945 r = btrfs_qgroupid_split(qgroups[i], &level, NULL);
1968 r = btrfs_qgroup_assign(fd, new_qgroupid, qgroups[i]);
1991 /* Assign our subvolume to all the same qgroups as the parent */
1994 r = btrfs_qgroup_assign(fd, subvol_id, qgroups[i]);