search for: block_size_minimum

Displaying 5 results from an estimated 5 matches for "block_size_minimum".

Did you mean: block_size_maximum
2020 Jul 24
0
[libnbd PATCH 3/3] nbdinfo: Expose block size constraints
...a/info/nbdinfo.pod b/info/nbdinfo.pod index 9761551..d0d20a9 100644 --- a/info/nbdinfo.pod +++ b/info/nbdinfo.pod @@ -45,6 +45,9 @@ L<https://github.com/NetworkBlockDevice/nbd/blob/master/doc/uri.md>): can_multi_conn: true can_trim: true can_zero: true + block_size_minimum: 1 + block_size_preferred: 4096 + block_size_maximum: 33554432 To display only the size in bytes of the NBD export (useful for scripting) use the I<--size> parameter: @@ -73,6 +76,9 @@ the I<--json> parameter: "can_multi_conn": true, "ca...
2023 Oct 08
1
[libnbd PATCH 2/2] info: Show human sizes for block_size values
..., const char *desc, >> show_boolean ("can_trim", can_trim); >> if (can_zero >= 0) >> show_boolean ("can_zero", can_zero); >> - if (block_minimum > 0) >> - fprintf (fp, "\t%s: %" PRId64 "\n", "block_size_minimum", block_minimum); >> - if (block_preferred > 0) >> - fprintf (fp, "\t%s: %" PRId64 "\n", "block_size_preferred", >> - block_preferred); >> - if (block_maximum > 0) >> - fprintf (fp, "\t%s: %&qu...
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
2020 Jul 24
4
[libnbd PATCH 0/3] Expose server block size constraints
Necessary when writing a client that wants to avoid unnecessary EINVAL errors from sending unaligned requests. At some point, we may want to add synchronous convenience API wrappers that do request splitting or read-modify-write to obey server constraints while still appearing to the library client as accepting any possible request. But such a wrapper should only be synchronous and not copied to
2020 Oct 06
2
[PATCH libnbd] info: Write output atomically.
...t%s: %s\n", "can_zero", can_zero ? "true" : "false"); + fprintf (fp, "\t%s: %s\n", "can_zero", can_zero ? "true" : "false"); if (block_minimum > 0) - printf ("\t%s: %" PRId64 "\n", "block_size_minimum", block_minimum); + fprintf (fp, "\t%s: %" PRId64 "\n", "block_size_minimum", block_minimum); if (block_preferred > 0) - printf ("\t%s: %" PRId64 "\n", "block_size_preferred", block_preferred); + fprintf (fp, &q...