search for: libnbd_state_zero

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

2019 Jun 27
0
Re: [libnbd PATCH] generator: Add support for namespace constants
...uint64_t offset, assert (entries[0] == 131072); assert (entries[1] == 0); if (!data->req_one) { /* hole|zero offset 128k size 384k */ - assert (entries[2] == 393216); assert (entries[3] == 3); + assert (entries[2] == 393216); assert (entries[3] == (LIBNBD_STATE_HOLE| + LIBNBD_STATE_ZERO)); /* allocated zero offset 512k size 64k */ - assert (entries[4] == 65536); assert (entries[5] == 2); + assert (entries[4] == 65536); assert (entries[5] == LIBNBD_STATE_ZERO); /* hole|zero offset 576k size 448k */ - assert (entries[6] == 458752); assert (entries[7] =...
2019 Jun 27
3
[libnbd PATCH] generator: Add support for namespace constants
This just defines the namespace, its contexts and related constants and the only supported one is currently base:allocation. The names of the constants are not very future-proof, but shorter than LIBNBD_META_NS_CONTEXT_BASE_ALLOCATION or similar. Currently the output looks like this: /* "base" namespace */ /* "base" namespace contexts */ /* "base:allocation"