search for: block_size_maximum

Displaying 6 results from an estimated 6 matches for "block_size_maximum".

2020 Jul 24
0
[libnbd PATCH 3/3] nbdinfo: Expose block size constraints
...--- 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, "can_trim": false, "can_zero": false, + &qu...
2023 Oct 08
1
[libnbd PATCH 2/2] info: Show human sizes for block_size values
...- if (block_preferred > 0) >> - fprintf (fp, "\t%s: %" PRId64 "\n", "block_size_preferred", >> - block_preferred); >> - if (block_maximum > 0) >> - fprintf (fp, "\t%s: %" PRId64 "\n", "block_size_maximum", block_maximum); >> + show_size ("block_size_minimum", block_minimum); >> + show_size ("block_size_preferred", block_preferred); >> + show_size ("block_size_maximum", block_maximum); >> } >> else { >> if (fi...
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.
...RId64 "\n", "block_size_preferred", block_preferred); + fprintf (fp, "\t%s: %" PRId64 "\n", "block_size_preferred", + block_preferred); if (block_maximum > 0) - printf ("\t%s: %" PRId64 "\n", "block_size_maximum", block_maximum); + fprintf (fp, "\t%s: %" PRId64 "\n", "block_size_maximum", block_maximum); } else { if (first) - printf ("\"exports\": [\n"); - printf ("\t{\n"); + fprintf (fp, "\"exports\&quo...
2020 Aug 03
5
[libnbd PATCH 0/4] More nbdinfo fixes
This rounds up the remaining bugs that I originally identified in: https://www.redhat.com/archives/libguestfs/2020-July/msg00153.html Eric Blake (4): api: Permit export list APIs when Connected info: Support --list with serializing servers info: Fix --json output when list size != 1 info: Permit --size --json generator/API.ml | 6 +++--- info/info-list-json.sh | 9 +++++++++