btrfs/210: Ignore output from "quota rescan" after "quota enable"
authorMarcos Paulo de Souza <mpdesouza@suse.com>
Tue, 21 Jul 2020 12:46:30 +0000 (09:46 -0300)
committerEryu Guan <guaneryu@gmail.com>
Sun, 26 Jul 2020 15:17:21 +0000 (23:17 +0800)
commit3fdb2899df7ec9d3a7d8e2e0ef2f31a1f34f4d08
treebd25a264528a9dbd450a20014b54f0c91c8b9a54
parent4e723c0f82591d0b0db906f16178b5d43d17c1b2
btrfs/210: Ignore output from "quota rescan" after "quota enable"

Command "quota enable" triggers a quota rescan, but it can finish
quick in some machines leading to the next command "quota rescan" to
be able to start scanning again, and then printing "quota rescan
started" making the test fail.

In some machines this don't happen because the first rescan
initiated by "quota enable" is still running when "quota rescan" is
executed, returning -EINPROGRESS from ioctl
BTRFS_IOC_QUOTA_RESCAN_STATUS and not printing the message.

Ignoring any output from "quota rescan" solves the issue in both
cases, and this is already being done by others tests as well.

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/210