search for: libnbd_namespace_base

Displaying 3 results from an estimated 3 matches for "libnbd_namespace_base".

2019 Jun 28
1
Re: [libnbd PATCH] generator: Add support for namespace constants
...g contexts of a namespace is not exposed, > >Rich still has the idea of adding a 'qemu-nbd --list' counterpart, so >defining a constant for the "base:" and "qemu:" namespaces makes sense >for that even if we can't use it now. Hmm - your patch defines >LIBNBD_NAMESPACE_BASE to "base", but in practice we'd want to pass >"base:" when querying which contexts are available in that namespace. > That is on the protocol, but the API does not need to take the ':*' suffix. Also it is costless to do LIBNBD_NAMESPACE_BASE ":" in t...
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"
2019 Jun 27
0
Re: [libnbd PATCH] generator: Add support for namespace constants
...seless, since listing contexts of a namespace is not exposed, Rich still has the idea of adding a 'qemu-nbd --list' counterpart, so defining a constant for the "base:" and "qemu:" namespaces makes sense for that even if we can't use it now. Hmm - your patch defines LIBNBD_NAMESPACE_BASE to "base", but in practice we'd want to pass "base:" when querying which contexts are available in that namespace. > > - whether this should live in a separate (still included in libnbd.h) file, Single file is fine by me for now; we can always split later if...