btrfs-progs/common
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
..
box.h
cpu-utils.c btrfs-progs: add special CPU flag bit representing no features 2023-02-28 19:49:31 +01:00
cpu-utils.h btrfs-progs: add special CPU flag bit representing no features 2023-02-28 19:49:31 +01:00
defs.h
device-scan.c
device-scan.h
device-utils.c
device-utils.h
extent-cache.c
extent-cache.h
filesystem-utils.c
filesystem-utils.h
format-output.c btrfs-progs: qgroup show: fix formatting of qgroupid on json output 2023-03-16 15:48:41 +01:00
format-output.h
fsfeatures.c
fsfeatures.h
help.c btrfs-progs: convert common options to option formatter 2023-02-28 20:11:24 +01:00
help.h btrfs-progs: convert common options to option formatter 2023-02-28 20:11:24 +01:00
internal.h
messages.c
messages.h
open-utils.c
open-utils.h
parse-utils.c btrfs-progs: fix fallthrough cases with proper attributes 2023-02-18 17:44:02 +01:00
parse-utils.h
path-utils.c
path-utils.h
rbtree-utils.c
rbtree-utils.h
send-stream.c
send-stream.h
send-utils.c
send-utils.h
string-table.c
string-table.h
string-utils.c
string-utils.h
task-utils.c
task-utils.h
units.c btrfs-progs: fix fallthrough cases with proper attributes 2023-02-18 17:44:02 +01:00
units.h
utils.c
utils.h