search for: networkblockdevice

Displaying 20 results from an estimated 29 matches for "networkblockdevice".

2018 Apr 12
2
Re: [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk
...for the transfer and configures an export in that host - for example: [bbff5ab7-2e8e-45b8-a497-423c2d2b3ff1] exportname = /path/to/image trim = yes timeout = 300 nbd-server supports reloading configuration via SIGHUP. Looks like it should work for adding export dynamically: https://github.com/NetworkBlockDevice/nbd/blob/cb6e816c4d2c536cfff5ba9859f210aabe39539b/nbd-server.c#L3007 I could find code handling removing exports. 3. User gets back - transfer_url: "nbd:hostname:port" - export_name: bbff5ab7-2e8e-45b8-a497-423c2d2b3ff1 Assuming that if NBD_OPT_EXPORT_NAME is bbff5ab7-2e8e-45b8-a497-42...
2018 Apr 10
2
Re: [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk
On Tue, Apr 10, 2018 at 03:25:47PM +0000, Nir Soffer wrote: > On Tue, Apr 10, 2018 at 5:50 PM Richard W.M. Jones <rjones@redhat.com> > wrote: > > > On Tue, Apr 10, 2018 at 02:07:33PM +0000, Nir Soffer wrote: > > > This makes sense if the device is backed by a block device on oVirt side, > > > and the NBD support efficient zeroing. But in this case the device
2019 Jun 25
4
Re: Few libnbd questions/concerns
...; metadata (NBD_STATE_HOLE and NBD_STATE_ZERO). >> It might just be things that are still missing due to an early stage >> of libnbd, or it might not belong there or it might be me misusing >> something. > > Have a look at the NBD protocol doc: > > https://github.com/NetworkBlockDevice/nbd/blob/master/doc/proto.md We could add convenience #defines into libnbd.h if needed, which would work for the base:allocation context, but it would not help any other context (such as qemu:dirty-bitmap:FOO) which has other definitions for the returned bits. But the fact that you have to call n...
2019 Jun 25
2
Few libnbd questions/concerns
Here are few things I found out when using libnbd that might be perfectly fine or maybe just an oversight, but I wanted to point them out. It's nothing major. When running a program with `nbdkit -U - --run ...`, the $nbd parameter gets expanded to nbd:unix:/path/to/socket. When this string is passed to nbd_connect_uri(), it does not return an error (even though it is not a valid URL), but
2019 Oct 01
1
[libnbd PATCH] docs: Add libnbd-security(1) man page
...SO + +L<libnbd(1)>. + +=head1 AUTHORS + +Eric Blake + +Richard W.M. Jones + +=head1 COPYRIGHT + +Copyright (C) 2019 Red Hat Inc. diff --git a/docs/libnbd.pod b/docs/libnbd.pod index 7bd59f5..e4810f6 100644 --- a/docs/libnbd.pod +++ b/docs/libnbd.pod @@ -830,6 +830,7 @@ L<https://github.com/NetworkBlockDevice/nbd/blob/master/doc/uri.md>. =head2 Other +L<libnbd-security(1), L<qemu(1)>. =head1 AUTHORS diff --git a/Makefile.am b/Makefile.am index 59918b9..019936f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,6 +24,7 @@ EXTRA_DIST = \ .gitignore \ html/pod.css \ scripts/git.order...
2019 Sep 12
1
[libnbd PATCH] nbdsh: Support -u as synonym for --connect
...24 =head2 Hexdump the boot sector of an NBD export @@ -78,6 +78,8 @@ can be specified multiple times in order to run multiple commands. Read standard input and execute it as a command. +=item B<-u> URI + =item B<--connect> URI Connect to the given L<NBD URI|https://github.com/NetworkBlockDevice/nbd/blob/master/doc/uri.md>. diff --git a/python/nbdsh.py b/python/nbdsh.py index 00bc6bc..b15702c 100644 --- a/python/nbdsh.py +++ b/python/nbdsh.py @@ -29,7 +29,7 @@ def shell(): epilog=epilog) parser.add_argument ('-b', '--base-allocatio...
2017 Nov 21
1
[nbdkit PATCH] maint: Mention upstream NBD in README
...block devices easily. + Lets you export "unconventional" block devices easily. * You can write plugins in C, Perl, Python, OCaml or Ruby. @@ -154,3 +154,4 @@ https://www.redhat.com/mailman/listinfo/libguestfs For further information, see: http://libguestfs.org/ +https://github.com/NetworkBlockDevice/nbd/blob/master/doc/proto.md -- 2.13.6
2018 Apr 12
0
Re: [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk
...in that host - for example: > > [bbff5ab7-2e8e-45b8-a497-423c2d2b3ff1] > exportname = /path/to/image > trim = yes > timeout = 300 > > nbd-server supports reloading configuration via SIGHUP. > Looks like it should work for adding export dynamically: > https://github.com/NetworkBlockDevice/nbd/blob/cb6e816c4d2c536cfff5ba9859f210aabe39539b/nbd-server.c#L3007 I don't think we have nbd-server in RHEL, and in any case wouldn't it be better to use qemu-nbd? You just start a new qemu-nbd process instead of faffing around with configuration files, kill the qemu-nbd process when yo...
2019 Jun 25
0
Re: Few libnbd questions/concerns
...t; of "base:allocation" metadata (NBD_STATE_HOLE and NBD_STATE_ZERO). > It might just be things that are still missing due to an early stage > of libnbd, or it might not belong there or it might be me misusing > something. Have a look at the NBD protocol doc: https://github.com/NetworkBlockDevice/nbd/blob/master/doc/proto.md Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Suppo...
2020 Jul 24
0
[libnbd PATCH 3/3] nbdinfo: Expose block size constraints
...me to put it to use. --- info/nbdinfo.pod | 6 ++++++ info/nbdinfo.c | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git 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)...
2020 Mar 16
0
[nbdkit] Serving "temporary disks" over NBD
...39;s filesystem rather than being RAM disks. (This is a round-about way of saying that nbdkit-memory-plugin cannot be used). Funnily enough nbd-server despite being very inflexible in many ways actually makes this particular use-case easy because of the nbd-server -c option: https://github.com/NetworkBlockDevice/nbd/blob/cb20c16354cccf4698fde74c42f5fb8542b289ae/man/nbd-server.1.in.sgml#L189 Of course I could very easily write a custom plugin just for this purpose, but could we do something in upstream nbdkit to make it easier? Currently the cow filter (unlike nbd-server -c) serves identical content to al...
2019 Mar 08
2
Supporting sparse disks in nbdkit
...nd reading: - preparatory patches: https://www.redhat.com/archives/libguestfs/2019-March/msg00013.html https://www.redhat.com/archives/libguestfs/2019-March/msg00016.html - NBD protocol, see in particular NBD_CMD_BLOCK_STATUS and NBD_REPLY_TYPE_BLOCK_STATUS: https://github.com/NetworkBlockDevice/nbd/blob/master/doc/proto.md I think we shouldn't modify the pread() callback. If we decide to implement Structured Replies properly at some point in the future we might need to do that, but it's not necessary now. We could introduce a new call ‘extents’ to return the list of extents. I...
2019 Oct 01
0
[libnbd PATCH] docs: Add libnbd-security(1) man page
...SO + +L<libnbd(1)>. + +=head1 AUTHORS + +Eric Blake + +Richard W.M. Jones + +=head1 COPYRIGHT + +Copyright (C) 2019 Red Hat Inc. diff --git a/docs/libnbd.pod b/docs/libnbd.pod index 7bd59f5..e4810f6 100644 --- a/docs/libnbd.pod +++ b/docs/libnbd.pod @@ -830,6 +830,7 @@ L<https://github.com/NetworkBlockDevice/nbd/blob/master/doc/uri.md>. =head2 Other +L<libnbd-security(1), L<qemu(1)>. =head1 AUTHORS diff --git a/Makefile.am b/Makefile.am index 59918b9..019936f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,6 +24,7 @@ EXTRA_DIST = \ .gitignore \ html/pod.css \ scripts/git.order...
2017 Nov 13
4
[nbdkit PATCH 0/3] various nbdkit patches
Fixes for various issues found while implementing my nbd forwarder plugin. I'm okay if you choose to take some but not others; the most important one is patch 3 which fixes a protocol violation that makes it impossible for a client to try and recover from EIO failures over a partially-flaky source block device. Eric Blake (3): maint: Add emacs hint file maint: Add NBDKIT_GDB support to
2019 Jun 27
0
Re: Few libnbd questions/concerns
...and NBD_STATE_ZERO). >>> It might just be things that are still missing due to an early stage >>> of libnbd, or it might not belong there or it might be me misusing >>> something. >> >> Have a look at the NBD protocol doc: >> >> https://github.com/NetworkBlockDevice/nbd/blob/master/doc/proto.md > > We could add convenience #defines into libnbd.h if needed, which would > work for the base:allocation context, but it would not help any other > context (such as qemu:dirty-bitmap:FOO) which has other definitions for > the returned bits. But the fac...
2020 Jan 22
3
[PATCH libnbd] PROPOSAL Add nbdcp (NBD copying) tool.
...: copy from file to file (use cp(1) or dd(1)), copy to or from formats other than raw (use qemu-img(1) convert), or access servers other than NBD servers (also use qemu-img(1)). NBD servers are specified by their URI, following the NBD URI standard at https://github.com/NetworkBlockDevice/nbd/blob/master/doc/uri.md Controlling sparseness or preallocation in the target The options -a (--target-allocation), -S (--sparse-detect) and -z (--target-is-zero) together control sparseness in the target file. By default nbdcp tries to both preserve sparseness from the...
2020 Oct 17
3
Why does libxml2 limit port numbers to 999,999,999?
...gned int (the type used to store port numbers), and give an error if the port number overflows. Is there anything I'm missing or would a patch which implements that be acceptable? Also could the uri->port field be changed to unsigned int without breaking ABI? Rich. [1] https://github.com/NetworkBlockDevice/nbd/blob/master/doc/uri.md [2] https://tools.ietf.org/html/rfc3986#section-3.2.3 [3] $ cat port.c #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <inttypes.h> #include <libxml/uri.h> int main (int argc, char *argv[]) { xmlUR...
2019 Sep 12
1
[libnbd PATCH v2] nbdsh: Prefer --uri over --connect
...sector of an NBD export @@ -76,6 +76,10 @@ can be specified multiple times in order to run multiple commands. Read standard input and execute it as a command. +=item B<-u> URI + +=item B<-uri> URI + =item B<--connect> URI Connect to the given L<NBD URI|https://github.com/NetworkBlockDevice/nbd/blob/master/doc/uri.md>. diff --git a/python/nbdsh.py b/python/nbdsh.py index 098cc8a..3b4ad0e 100644 --- a/python/nbdsh.py +++ b/python/nbdsh.py @@ -29,8 +29,10 @@ def shell(): epilog=epilog) parser.add_argument ('--base-allocation', actio...
2020 Sep 28
2
[libnbd PATCH] nbdsh: Add --opt-mode command line option
...onnecting, and works +even when combined with C<--uri> (while attempting the same with C<-c> +would be too late). + =item B<-c -> =item B<--command -> @@ -85,6 +96,12 @@ Read standard input and execute it as a command. Connect to the given L<NBD URI|https://github.com/NetworkBlockDevice/nbd/blob/master/doc/uri.md>. This is equivalent to the S<C<h.connect_uri(URI)>> command in the shell. +Note that the connection is created prior to processing any C<-c> +commands, which prevents the use of configuration commands such as +S<C<h.add_meta_context(>NAMEC...
2019 Mar 08
0
Re: Supporting sparse disks in nbdkit
...y patches: > https://www.redhat.com/archives/libguestfs/2019-March/msg00013.html > https://www.redhat.com/archives/libguestfs/2019-March/msg00016.html > - NBD protocol, see in particular NBD_CMD_BLOCK_STATUS and > NBD_REPLY_TYPE_BLOCK_STATUS: > https://github.com/NetworkBlockDevice/nbd/blob/master/doc/proto.md > > I think we shouldn't modify the pread() callback. If we decide to > implement Structured Replies properly at some point in the future we > might need to do that, but it's not necessary now. Agreed; pread should stay for simple, and a plugin/fi...