search for: get_version

Displaying 20 results from an estimated 36 matches for "get_version".

2020 Aug 07
1
Re: [nbdkit PATCH 2/4] file: Add .list_exports support
...e exportname (client controlled) to log files? > +# Hack: This rejects libnbd 1.3.9, but we really need libnbd >= 1.3.11, > +# which does not have its own decent witness... > +requires nbdsh -c 'print (h.get_list_export_description)' Some variation on: $ nbdsh -c 'print(h.get_version())' 1.3.11 $ nbdsh -c 'from packaging import version ; print(version.parse(h.get_version()) >= version.parse("1.3.11"))' True However 1.3.10 was only present for a short time and I already got rid of it in Rawhide because it affected other nbdkit tests, so probably what yo...
2019 Sep 25
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...et_config: Write to device specific confiugration space > + * @mdev: mediated device > + * @offset: offset from the beginning of > + * configuration space > + * @buf: buffer used to write from > + * @len: the length to write to > + * configration space > + * @get_version: Get the version of virtio mdev device > + * @mdev: mediated device > + * Returns integer: version of the device > + * @get_generation: Get device generaton > + * @mdev: mediated device > + * Returns u32: device generation > + */ > +struct virtio_mdev_device_ops {...
2019 Sep 25
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...et_config: Write to device specific confiugration space > + * @mdev: mediated device > + * @offset: offset from the beginning of > + * configuration space > + * @buf: buffer used to write from > + * @len: the length to write to > + * configration space > + * @get_version: Get the version of virtio mdev device > + * @mdev: mediated device > + * Returns integer: version of the device > + * @get_generation: Get device generaton > + * @mdev: mediated device > + * Returns u32: device generation > + */ > +struct virtio_mdev_device_ops {...
2019 Sep 25
2
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...; + * @mdev: mediated device > > > + * @offset: offset from the beginning of > > > + * configuration space > > > + * @buf: buffer used to write from > > > + * @len: the length to write to > > > + * configration space > > > + * @get_version: Get the version of virtio mdev device > > > + * @mdev: mediated device > > > + * Returns integer: version of the device > > > + * @get_generation: Get device generaton > > > + * @mdev: mediated device > > > + * Returns u32: device generati...
2019 Sep 25
2
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...; + * @mdev: mediated device > > > + * @offset: offset from the beginning of > > > + * configuration space > > > + * @buf: buffer used to write from > > > + * @len: the length to write to > > > + * configration space > > > + * @get_version: Get the version of virtio mdev device > > > + * @mdev: mediated device > > > + * Returns integer: version of the device > > > + * @get_generation: Get device generaton > > > + * @mdev: mediated device > > > + * Returns u32: device generati...
2019 Sep 24
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...et_config: Write to device specific confiugration space > + * @mdev: mediated device > + * @offset: offset from the beginning of > + * configuration space > + * @buf: buffer used to write from > + * @len: the length to write to > + * configration space > + * @get_version: Get the version of virtio mdev device > + * @mdev: mediated device > + * Returns integer: version of the device > + * @get_generation: Get device generaton > + * @mdev: mediated device > + * Returns u32: device generation > + */ > +struct virtio_mdev_device_ops {...
2019 Sep 24
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...om + * configration space + * @set_config: Write to device specific confiugration space + * @mdev: mediated device + * @offset: offset from the beginning of + * configuration space + * @buf: buffer used to write from + * @len: the length to write to + * configration space + * @get_version: Get the version of virtio mdev device + * @mdev: mediated device + * Returns integer: version of the device + * @get_generation: Get device generaton + * @mdev: mediated device + * Returns u32: device generation + */ +struct virtio_mdev_device_ops { + /* Virtqueue ops */ + int (*set_...
2019 Sep 26
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...ev: mediated device >>>> + * @offset: offset from the beginning of >>>> + * configuration space >>>> + * @buf: buffer used to write from >>>> + * @len: the length to write to >>>> + * configration space >>>> + * @get_version: Get the version of virtio mdev device >>>> + * @mdev: mediated device >>>> + * Returns integer: version of the device >>>> + * @get_generation: Get device generaton >>>> + * @mdev: mediated device >>>> + * Returns u32: devic...
2019 Sep 25
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...specific confiugration space >> + * @mdev: mediated device >> + * @offset: offset from the beginning of >> + * configuration space >> + * @buf: buffer used to write from >> + * @len: the length to write to >> + * configration space >> + * @get_version: Get the version of virtio mdev device >> + * @mdev: mediated device >> + * Returns integer: version of the device >> + * @get_generation: Get device generaton >> + * @mdev: mediated device >> + * Returns u32: device generation >> + */ >> +str...
2019 Sep 26
1
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...gt;> + * @mdev: mediated device > >> + * @offset: offset from the beginning of > >> + * configuration space > >> + * @buf: buffer used to write from > >> + * @len: the length to write to > >> + * configration space > >> + * @get_version: Get the version of virtio mdev device > >> + * @mdev: mediated device > >> + * Returns integer: version of the device > >> + * @get_generation: Get device generaton > >> + * @mdev: mediated device > >> + * Returns u32: device generation &g...
2019 Jun 03
3
[PATCH libnbd] api: nbd_get_version, nbd_supports_uri and nbd_get_package_name.
nbd_get_version returns the library version as a string. nbd_supports_uri returns whether or not the library was compiled with NBD URI support (ie. with libxml2). nbd_get_package_name is fairly useless as it always returns the string "libnbd", however it replaces a function that was written for the Pyt...
2019 Aug 22
0
[PATCH disk-sync 4/5] Require libnbd >= 0.9.8 and fail hard if it's an earlier version.
...N = version.parse("0.9.8") + LOG_FORMAT_TIME = '[%(asctime)s] ' LOG_FORMAT_MSG = ': %(message)s' @@ -582,6 +586,13 @@ def main(): '''TODO: Add some description here ''' args = parse_args() + + nbd_version = version.parse(nbd.NBD().get_version()) + if nbd_version < NBD_MIN_VERSION: + logging.error("version on libnbd is too old. Version found = %s. Min version required = %s" % + (nbd_version, NBD_MIN_VERSION)) + sys.exit(1) + state = State(args).instance validate_state(args.sy...
2019 Aug 22
7
[PATCH disk-sync 0/5] Misc cleanups and convert inner loop to asynch.
This is based on top of: https://github.com/nertpinx/v2v-conversion-host/commit/0bb2efdcacd975a2cae7380080991ac7fc238d2b The first 4 patches are fairly uncontroversial miscellaneous cleanups. Patch 5 is the interesting one. (Note it doesn't quite work yet, so it's for discussion only.) Patch 5 converts the inner loop to use asynchronous libnbd calls. performance improves quite a bit for
2019 Sep 05
0
[PATCH libnbd] generator: Move first_version fields to a single table.
...+ "aio_is_dead", (1, 0); + "aio_is_closed", (1, 0); + "aio_command_completed", (1, 0); + "aio_peek_command_completed", (1, 0); + "aio_in_flight", (1, 0); + "connection_state", (1, 0); + "get_package_name", (1, 0); + "get_version", (1, 0); + "kill_subprocess", (1, 0); + "supports_tls", (1, 0); + "supports_uri", (1, 0); + + (* Added in 1.1 development series. *) + "can_fast_zero", (1, 2); ] (* Constants, etc. *) @@ -3336,13 +3423,37 @@ let () = | _ -> () ) hand...
2011 Feb 23
1
web app deployment on a Debian server
Hello, I would like to ask your advice for the simplest method to do deployment on a debian server. From my perspective the system should look something like this : # web server node node "prod.domain.com" inherits webserver { webapp::project{app1: domain => "app1.com", package => "app1", version => ''1.1.2''
2019 Sep 05
3
[PATCH libnbd] generator: Move first_version fields to a single table.
This doesn't include Eric's new APIs, but if you push those then I can rebase this one on top. Rich.
2019 Sep 24
17
[PATCH V2 0/8] mdev based hardware virtio offloading support
Hi all: There are hardware that can do virtio datapath offloading while having its own control path. This path tries to implement a mdev based unified API to support using kernel virtio driver to drive those devices. This is done by introducing a new mdev transport for virtio (virtio_mdev) and register itself as a new kind of mdev driver. Then it provides a unified way for kernel virtio driver to
2019 Sep 24
17
[PATCH V2 0/8] mdev based hardware virtio offloading support
Hi all: There are hardware that can do virtio datapath offloading while having its own control path. This path tries to implement a mdev based unified API to support using kernel virtio driver to drive those devices. This is done by introducing a new mdev transport for virtio (virtio_mdev) and register itself as a new kind of mdev driver. Then it provides a unified way for kernel virtio driver to
2019 Oct 21
0
[RFC 2/2] vhost: IFC VF vdpa layer
...v_device *mdev) >>> +{ >>> +??? struct ifcvf_adapter *adapter = mdev_get_drvdata(mdev); >>> +??? struct ifcvf_hw *vf = IFC_PRIVATE_TO_VF(adapter); >>> + >>> +??? return vf->generation; >>> +} >>> + >>> +static int ifcvf_mdev_get_version(struct mdev_device *mdev) >>> +{ >>> +??? return VIRTIO_MDEV_VERSION; >>> +} >>> + >>> +static u32 ifcvf_mdev_get_device_id(struct mdev_device *mdev) >>> +{ >>> +??? return IFCVF_DEVICE_ID; >>> +} >>> + >>> +s...
2019 Oct 16
0
[RFC 2/2] vhost: IFC VF vdpa layer
...tus; > +} > + > +static u32 ifcvf_mdev_get_generation(struct mdev_device *mdev) > +{ > + struct ifcvf_adapter *adapter = mdev_get_drvdata(mdev); > + struct ifcvf_hw *vf = IFC_PRIVATE_TO_VF(adapter); > + > + return vf->generation; > +} > + > +static int ifcvf_mdev_get_version(struct mdev_device *mdev) > +{ > + return VIRTIO_MDEV_VERSION; > +} > + > +static u32 ifcvf_mdev_get_device_id(struct mdev_device *mdev) > +{ > + return IFCVF_DEVICE_ID; > +} > + > +static u32 ifcvf_mdev_get_vendor_id(struct mdev_device *mdev) > +{ > + return IFC...