On 03/11/2014 03:43 AM, Josef Bacik wrote:
-----BEGIN PGP SIGNED MESSAGE-----
On 03/09/2014 11:44 PM, Wang Shilong wrote:
Test flow is to run fsstress after triggering quota rescan. the
ruler is simple, we just remove all files and directories, sync
filesystem and see if qgroup's ref and excl are nodesize.
Signed-off-by: Wang Shilong <wangsl.fnst@xxxxxxxxxxxxxx> ---
v1->v2: switch into new helper _run_btrfs_util_prog() ---
tests/btrfs/041 | 76
tests/btrfs/041.out | 3 +++ tests/btrfs/group | 1 + 3 files
changed, 80 insertions(+) create mode 100644 tests/btrfs/041 create
mode 100644 tests/btrfs/041.out
So this doesn't pass for me but it's not because we're broken, it's
because the test is broken. What you should do is run sync after you
do the rm, and then capture the output of btrfs qgroup show, and then
do the rescan and redo qgroup show and make sure the numbers match. I
did this in my qgroup test, you can look there as an example. Thanks,
Let's take a look at my test flows:
step1: write some random data to fs tree and then create a snapshot of
step2: also try to write some random data to newly created snapshot.
step3: enable quota and wait quota rescan finished.(btrfs quota rescan -w)
step4: remove all files and sync btrfs filesystem.
So i did a simple test that if we don't create snapshot here, i get
right here, so i think it is realted to qgroup accounting that differs
'refer' and 'excl'.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----