From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Nikolay Borisov <nborisov@suse.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 13:16:18 +0800 [thread overview]
Message-ID: <162544f0-9344-9fc9-bbd9-e0ced0eed856@gmx.com> (raw)
In-Reply-To: <c0dd0b84-776c-a089-0769-913879d9aa9c@suse.com>
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?
Thanks,
Qu
next prev parent reply other threads:[~2019-12-12 5:16 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 [this message]
2019-12-12 9:31 ` Nikolay Borisov
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=162544f0-9344-9fc9-bbd9-e0ced0eed856@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=guaneryu@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=nborisov@suse.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