All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo@cn.fujitsu.com>
To: Eryu Guan <eguan@redhat.com>
Cc: linux-btrfs@vger.kernel.org, fstests@vger.kernel.org
Subject: Re: [PATCH v2 2/2] fstests: btrfs: Use _require_btrfs_qgroup_report to replace open code
Date: Thu, 8 Dec 2016 17:20:49 +0800	[thread overview]
Message-ID: <a00f647f-7ec0-386c-67fa-07e7318cb22e@cn.fujitsu.com> (raw)
In-Reply-To: <20161208084715.GJ29149@eguan.usersys.redhat.com>



At 12/08/2016 04:47 PM, Eryu Guan wrote:
> On Thu, Dec 08, 2016 at 04:12:13PM +0800, Qu Wenruo wrote:
>> Introduce new _require_btrfs_qgroup_report function, which will check
>> the accessibility to "btrfs check --qgroup-report", then set a global
>> flag to info _check_scratch_fs() to do extra qgroup check.
>>
>> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
>> ---
>> v2:
>>   Use "${RESULT_DIR}/require_scratch.require_qgroup_report" instead of
>>   global variant
>>   Rebased to latest master
>>   Replace btrfsck with $BTRFS_UTIL_PROG check.
> [snip]
>> diff --git a/tests/btrfs/042 b/tests/btrfs/042
>> index 498ccc9..dc9b762 100755
>> --- a/tests/btrfs/042
>> +++ b/tests/btrfs/042
>> @@ -43,6 +43,7 @@ _cleanup()
>>  _supported_fs btrfs
>>  _supported_os Linux
>>  _require_scratch
>> +_require_btrfs_qgroup_report
>>
>>  rm -f $seqres.full
>>
>> @@ -84,10 +85,7 @@ for i in `seq 10 -1 1`; do
>>  	total_written=$(($total_written+$filesize))
>>  done
>>
>> -#check if total written exceeds limit
>> -if [ $total_written -gt $LIMIT_SIZE ];then
>> -	_fail "total written should be less than $LIMIT_SIZE"
>> -fi
>> +# qgroup will be checked automatically at _check_scratch_fs() by fstest
>
> This doesn't look like an equivalent replacement, and btrfs/042 fails
> for me after this update (wrong qgroup numbers) on 4.9-rc4 kernel. Is
> this change intentional?
>
> Thanks,
> Eryu
>
>
Sorry, just a typo.For 042 only the _require_btrfs_qgroup_report line is 
need.

I also ran the test with v4.9-rc6 with some new btrfs patches (David's 
for-next branch), it ran without problem.

So the error seems to be a fixed btrfs qgroup problem.

Thanks,
Qu



  reply	other threads:[~2016-12-08  9:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-08  8:12 [PATCH v2 1/2] fstests: common: rename and enhance _require_btrfs to _require_btrfs_command Qu Wenruo
2016-12-08  8:12 ` [PATCH v2 2/2] fstests: btrfs: Use _require_btrfs_qgroup_report to replace open code Qu Wenruo
2016-12-08  8:47   ` Eryu Guan
2016-12-08  9:20     ` Qu Wenruo [this message]
2016-12-08 10:17       ` Eryu Guan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a00f647f-7ec0-386c-67fa-07e7318cb22e@cn.fujitsu.com \
    --to=quwenruo@cn.fujitsu.com \
    --cc=eguan@redhat.com \
    --cc=fstests@vger.kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.