1nbdsh(1)                            LIBNBD                            nbdsh(1)
2
3
4

NAME

6       nbdsh - network block device (NBD) shell
7

SYNOPSIS

9        $ nbdsh
10
11        Welcome to nbdsh, the shell for interacting with
12        Network Block Device (NBD) servers.
13
14        The ‘nbd’ module has already been imported and there
15        is an open NBD handle called ‘h’.
16
17        nbd> h.connect_command (["nbdkit", "-s", "memory", "1G"])
18        nbd> h.get_size ()
19        1073741824
20        nbd> buf = b"hello, world"
21        nbd> h.pwrite (buf, 0, 0)
22        nbd> exit()
23

DESCRIPTION

25       nbdsh is a Python-based client shell for accessing Network Block Device
26       (NBD) servers.
27
28       For documentation about the libnbd API please open the shell and type:
29
30        help (nbd)
31

OPTIONS

33       -h
34       --help
35           Display brief command line help and exit.
36
37       -V
38       --version
39           Display the package name and version and exit.
40

SEE ALSO

42       libnbd(3), libnbd-api(3), qemu-img(1).
43

AUTHORS

45       Richard W.M. Jones
46
48       Copyright (C) 2019 Red Hat Inc.
49

LICENSE

51       This library is free software; you can redistribute it and/or modify it
52       under the terms of the GNU Lesser General Public License as published
53       by the Free Software Foundation; either version 2 of the License, or
54       (at your option) any later version.
55
56       This library is distributed in the hope that it will be useful, but
57       WITHOUT ANY WARRANTY; without even the implied warranty of
58       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
59       Lesser General Public License for more details.
60
61       You should have received a copy of the GNU Lesser General Public
62       License along with this library; if not, write to the Free Software
63       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
64       02110-1301 USA
65
66
67
68libnbd-0.1.4                      2019-06-09                          nbdsh(1)
Impressum