Skip to content

Commit 468bbb6

Browse files
adam900710kdave
authored andcommitted
btrfs-progs: qgroup: add qgroup_lookup::flags member
This allows the users to identify if the running qgroup mode and whether the numbers are already inconsistent. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 1297013 commit 468bbb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmds/qgroup.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ struct btrfs_qgroup_list {
6565
};
6666

6767
struct qgroup_lookup {
68+
/* This matches btrfs_qgroup_status_item::flags. */
69+
u64 flags;
6870
struct rb_root root;
6971
};
7072

@@ -1313,6 +1315,7 @@ static int __qgroups_search(int fd, struct btrfs_tree_search_args *args,
13131315
case BTRFS_QGROUP_STATUS_KEY:
13141316
si = btrfs_tree_search_data(args, off);
13151317
flags = btrfs_stack_qgroup_status_flags(si);
1318+
qgroup_lookup->flags = flags;
13161319

13171320
print_status_flag_warning(flags);
13181321
break;

0 commit comments

Comments
 (0)