From: Nikolay Borisov <nborisov@suse.com>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>, slash@ac.auone-net.jp
Cc: Eryu Guan <guaneryu@gmail.com>,
linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: fstests: Don't use gawk's strtonum breaking existing fstests
Date: Thu, 12 Dec 2019 11:31:24 +0200 [thread overview]
Message-ID: <4bacde42-c6d1-0d7a-78ca-e44bac6bf7ad@suse.com> (raw)
In-Reply-To: <162544f0-9344-9fc9-bbd9-e0ced0eed856@gmx.com>
On 12.12.19 г. 7:16 ч., Qu Wenruo wrote:
>
>
> On 2019/12/12 上午12:33, Nikolay Borisov wrote:
>>
>>
>> On 11.12.19 г. 17:53 ч., Nikolay Borisov wrote:
>>> Hello,
>>>
>>> Following upstream commit:
>>> https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/commit/?id=37520a314bd472ed720ed0611c6b69e418be9b61
>>>
>>> breaks btrfs/095 and btrfs/098 tests.
>>>
>>
>> The problem is that the old code was using gawk's strtonum and returning
>> a base 10 number from an octal input. Whereas the existing code gets an
>> octal number which is again parsed as an octal when using printf. So the
>> path in question needs to either by reverted or extended so that the
>> necessary conversion from octal to base 10 is performed _before_ calling
>> printf.
>>
>
> Well, octal values really makes no sense. We should go either hex, or
> human readable decimal.
>
> Octal should only be left for certain historical use cases, like user
> privileges. For content dump, octal is never a good use case to show offset.
>
> Since current filter_od can't handle -Ax yet, what about just use hash
> instead of the problem prone od?
> And put the od output into seqres.full for later debug?
I disagree, using the output of od one can see the actual content of
extents and can quickly diagnose the failure.
>
> Thanks,
> Qu
>
prev parent reply other threads:[~2019-12-12 9:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-11 15:53 fstests: Don't use gawk's strtonum breaking existing fstests Nikolay Borisov
2019-12-11 16:33 ` Nikolay Borisov
2019-12-12 5:16 ` Qu Wenruo
2019-12-12 9:31 ` Nikolay Borisov [this message]
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=4bacde42-c6d1-0d7a-78ca-e44bac6bf7ad@suse.com \
--to=nborisov@suse.com \
--cc=guaneryu@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=quwenruo.btrfs@gmx.com \
--cc=slash@ac.auone-net.jp \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox