bellard | 7a5ca86 | 2008-05-27 21:13:40 +0000 | [diff] [blame] | 1 | @example |
| 2 | @c man begin SYNOPSIS |
| 3 | usage: qemu-nbd [OPTION]... @var{filename} |
| 4 | @c man end |
| 5 | @end example |
| 6 | |
| 7 | @c man begin DESCRIPTION |
| 8 | |
Stefan Weil | 071c939 | 2012-04-07 09:23:36 +0200 | [diff] [blame] | 9 | Export QEMU disk image using NBD protocol. |
bellard | 7a5ca86 | 2008-05-27 21:13:40 +0000 | [diff] [blame] | 10 | |
| 11 | @c man end |
| 12 | |
| 13 | @c man begin OPTIONS |
aliguori | 4a6b819 | 2008-09-22 20:41:57 +0000 | [diff] [blame] | 14 | @table @option |
| 15 | @item @var{filename} |
bellard | 7a5ca86 | 2008-05-27 21:13:40 +0000 | [diff] [blame] | 16 | is a disk image filename |
aliguori | 4a6b819 | 2008-09-22 20:41:57 +0000 | [diff] [blame] | 17 | @item -p, --port=@var{port} |
| 18 | port to listen on (default @samp{1024}) |
| 19 | @item -o, --offset=@var{offset} |
bellard | 7a5ca86 | 2008-05-27 21:13:40 +0000 | [diff] [blame] | 20 | offset into the image |
aliguori | 4a6b819 | 2008-09-22 20:41:57 +0000 | [diff] [blame] | 21 | @item -b, --bind=@var{iface} |
| 22 | interface to bind to (default @samp{0.0.0.0}) |
| 23 | @item -k, --socket=@var{path} |
| 24 | Use a unix socket with path @var{path} |
bellard | 7a5ca86 | 2008-05-27 21:13:40 +0000 | [diff] [blame] | 25 | @item -r, --read-only |
| 26 | export read-only |
aliguori | 4a6b819 | 2008-09-22 20:41:57 +0000 | [diff] [blame] | 27 | @item -P, --partition=@var{num} |
| 28 | only expose partition @var{num} |
ths | 2f72648 | 2008-07-03 11:47:46 +0000 | [diff] [blame] | 29 | @item -s, --snapshot |
| 30 | use snapshot file |
| 31 | @item -n, --nocache |
| 32 | disable host cache |
Ryota Ozaki | bba7be9 | 2010-03-04 00:18:43 +0900 | [diff] [blame] | 33 | @item -c, --connect=@var{dev} |
| 34 | connect @var{filename} to NBD device @var{dev} |
ths | cd831bd | 2008-07-03 10:23:51 +0000 | [diff] [blame] | 35 | @item -d, --disconnect |
| 36 | disconnect the specified device |
aliguori | 4a6b819 | 2008-09-22 20:41:57 +0000 | [diff] [blame] | 37 | @item -e, --shared=@var{num} |
| 38 | device can be shared by @var{num} clients (default @samp{1}) |
ths | 7581825 | 2008-07-03 13:41:03 +0000 | [diff] [blame] | 39 | @item -t, --persistent |
| 40 | don't exit on the last connection |
bellard | 7a5ca86 | 2008-05-27 21:13:40 +0000 | [diff] [blame] | 41 | @item -v, --verbose |
| 42 | display extra debugging information |
| 43 | @item -h, --help |
| 44 | display this help and exit |
| 45 | @item -V, --version |
| 46 | output version information and exit |
| 47 | @end table |
| 48 | |
| 49 | @c man end |
| 50 | |
| 51 | @ignore |
| 52 | |
| 53 | @setfilename qemu-nbd |
| 54 | @settitle QEMU Disk Network Block Device Server |
| 55 | |
| 56 | @c man begin AUTHOR |
| 57 | Copyright (C) 2006 Anthony Liguori <anthony@codemonkey.ws>. |
| 58 | This is free software; see the source for copying conditions. There is NO |
| 59 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 60 | @c man end |
| 61 | |
| 62 | @c man begin SEEALSO |
| 63 | qemu-img(1) |
| 64 | @c man end |
| 65 | |
| 66 | @end ignore |