Skip to contentSkip to conversation

btrfs/099: Fix qgroupid issue

PATCH In review An Long 2 participants 2 messages Dec 1, 2021 – Dec 5, 2021

lore
Share & tools
lore

An Long

author
#0 lore raw

PATCH 1/1 btrfs/099: Fix qgroupid issue

The qgroup commands now accepts the level/id format. Use 0/subvolid to avoid invalid qgroupid error.

---
 tests/btrfs/099 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/btrfs/099 +1 -1
index 375cc2b9..f3a2002a 100755
@@ -29,7 +29,7 @@ _scratch_mount
 _require_fs_space $SCRATCH_MNT $(($FILESIZE * 2 / 1024))
 
 _run_btrfs_util_prog quota enable $SCRATCH_MNT
-_run_btrfs_util_prog qgroup limit $FILESIZE 5 $SCRATCH_MNT
+_run_btrfs_util_prog qgroup limit $FILESIZE 0/5 $SCRATCH_MNT
 
 # loop 5 times without sync to ensure reserved space leak will happen
 for i in `seq 1 5`; do
Signature · 1 line
2.31.1
#1 lore raw
Quoted 4 lines · An Long

The qgroup commands now accepts the level/id format. Use 0/subvolid to avoid invalid qgroupid error.

Thanks for the fix! But this has been fixed by commit e4746f0dcd1e ("btrfs/099: use the qgroupid for qgroup limit"), would you please pull the latest code and check if that fixes the issue for you?

Thanks,
Eryu

P.S.

Please also cc btrfs list in future for btrfs-specific patches. Similarly for patches for other filesystems.

Quoted 19 lines
---
 tests/btrfs/099 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/btrfs/099 +1 -1
index 375cc2b9..f3a2002a 100755
@@ -29,7 +29,7 @@ _scratch_mount
 _require_fs_space $SCRATCH_MNT $(($FILESIZE * 2 / 1024))
 
 _run_btrfs_util_prog quota enable $SCRATCH_MNT
-_run_btrfs_util_prog qgroup limit $FILESIZE 5 $SCRATCH_MNT
+_run_btrfs_util_prog qgroup limit $FILESIZE 0/5 $SCRATCH_MNT
 
 # loop 5 times without sync to ensure reserved space leak will happen
 for i in `seq 1 5`; do
Signature · 1 line
2.31.1