Re: fstests: Don't use gawk's strtonum breaking existing fstests

Nikolay Borisov
2019-12-11T16:33:49Z

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.