Skip to contentSkip to conversation

A question for btrfs-progs code

DISCUSSION Sidong Yang 2 participants 2 messages Mar 8, 2022 – Mar 9, 2022 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi I have a simple question for btrfs-progs.
In cmd/subvolume.c, It seems that create subvolume command has -c option. According to code, it gets two qgroup ids and adds to qgroup_inherit. But the command is not in manual. Same as creating snapshot.

Is it deprecated option or internally used? If it should be deleted, It would be glad to do it.

#1 lore raw
Quoted 7 lines · Sidong Yang

Hi I have a simple question for btrfs-progs.
In cmd/subvolume.c, It seems that create subvolume command has -c option. According to code, it gets two qgroup ids and adds to qgroup_inherit. But the command is not in manual. Same as creating snapshot.

Is it deprecated option or internally used?

That -c can easily screw up the qgroup numbers.

So we don't want users to use them.

I'm not sure if we should even provide that interface.

Quoted 1 line

If it should be deleted, It would be glad to do it.

Feel free to do that, as I'm completely fine to remove it.

Thanks,
Qu