btrfs-progs/tests/cli-tests
David Sterba 600f374058 btrfs-progs: qgroup show: fix formatting of qgroupid on json output
On a 32bit host the split qgroupid is wrong due to the way the numbers
are passed to the formatter as variable length arguments. The level is
u16, promoted to int and then parsed as u64. This means that the values
are shifted and some stack data are printed instead.

Example error messages from yast2-bootloader:

  SystemCmd.cc(addLine):569 Adding Line 7 "      "qgroupid": "21474836480/23885859321282560","

The value 21474836480 = 0x5000000 is 0x5 shifted by 32 bits,
23885859321282560 is 0x54dc1000000000 and shifting by 32 does not
lead to a valid value which should be 0 in this case.

Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1209136
Signed-off-by: David Sterba <dsterba@suse.com>
2023-03-16 15:48:41 +01:00
..
001-btrfs btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
002-balance-full-no-filters btrfs-progs: balance: check for full-balance before background fork 2019-09-04 16:06:42 +02:00
003-fi-resize-args btrfs-progs: tests: cli/003 verify that the path is not an image 2021-02-19 15:24:42 +01:00
004-send-parent-multi-subvol btrfs-progs: tests: use _mktemp for creating files 2022-10-11 09:06:12 +02:00
005-qgroup-show btrfs-progs: qgroup show: fix formatting of qgroupid on json output 2023-03-16 15:48:41 +01:00
006-qgroup-show-sync btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
007-check-force btrfs-progs: check: warn users about the possible dangers of --repair 2019-11-22 19:07:20 +01:00
008-subvolume-get-set-default btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
009-btrfstune btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
010-subvol-show-qgroup btrfs-progs: tests: simple test for subvol show output 2019-07-03 13:31:15 +02:00
011-defrag-recursion btrfs-progs: test: add simple test for defrag recursion depth 2019-07-04 02:06:35 +02:00
012-defrag-recursion btrfs-progs: tests: use _mktemp_local for temporary files 2022-10-11 09:06:13 +02:00
013-subvolume-delete-by-id btrfs-progs: tests: check if subvolume delete by id is supported 2020-03-31 18:37:36 +02:00
014-multiple-profiles-warning btrfs-progs: tests: skip cli-tests/014 in travis 2020-08-31 17:01:03 +02:00
015-defrag-compress btrfs-progs: tests: test options for defrag -c 2021-09-20 11:46:24 +02:00
016-btrfs-fi-usage btrfs-progs: tests: test for btrfs fi usage output 2021-11-25 15:24:15 +01:00
017-fi-show-missing btrfs-progs: tests: fix cli/017 test case failure 2023-02-28 20:11:23 +01:00