search for: human_size_flag

Displaying 2 results from an estimated 2 matches for "human_size_flag".

2023 Oct 08
1
[libnbd PATCH 2/2] info: Show human sizes for block_size values
...01,21 @@ show_boolean (const char *name, bool cond) >> ansi_restore (fp); >> } >> >> +/* Used for displaying sizes in non-JSON output. */ >> +void show_size (const char *name, int64_t size) >> +{ >> + char size_str[HUMAN_SIZE_LONGEST]; >> + bool human_size_flag = false; >> + >> + if (size > 0) { >> + human_size (size_str, size, &human_size_flag); >> + if (human_size_flag) >> + fprintf (fp, "\t%s: %" PRId64 " (%s)\n", name, size, size_str); >> + else >> + fprintf (fp,...
2023 Oct 06
2
[libnbd PATCH 0/2] Improve nbdinfo display of block constraints
Based on Laszlo's approval of my idea here: https://listman.redhat.com/archives/libguestfs/2023-September/032661.html but as I would like to resync human-size.h back to nbdkit, I'm reluctant to apply patch 1 this until I get Rich's consent to relicensing (this email serves as my consent for my contribution here): https://listman.redhat.com/archives/libguestfs/2023-October/032755.html