Revision b033cd86 qemu-nbd.c

b/qemu-nbd.c
46 46

  
47 47
static void usage(const char *name)
48 48
{
49
    printf(
49
    (printf) (
50 50
"Usage: %s [OPTIONS] FILE\n"
51 51
"QEMU Disk Network Block Device Server\n"
52 52
"\n"
53
"  -h, --help           display this help and exit\n"
54
"  -V, --version        output version information and exit\n"
55
"\n"
56
"Connection properties:\n"
53 57
"  -p, --port=PORT      port to listen on (default `%d')\n"
54
"  -o, --offset=OFFSET  offset into the image\n"
55 58
"  -b, --bind=IFACE     interface to bind to (default `0.0.0.0')\n"
56 59
"  -k, --socket=PATH    path to the unix socket\n"
57 60
"                       (default '"SOCKET_PATH"')\n"
58
"  -r, --read-only      export read-only\n"
59
"  -P, --partition=NUM  only expose partition NUM\n"
60
"  -s, --snapshot       use snapshot file\n"
61
"  -n, --nocache        disable host cache\n"
62
"  -c, --connect=DEV    connect FILE to the local NBD device DEV\n"
63
"  -d, --disconnect     disconnect the specified device\n"
64 61
"  -e, --shared=NUM     device can be shared by NUM clients (default '1')\n"
65 62
"  -t, --persistent     don't exit on the last connection\n"
66 63
"  -v, --verbose        display extra debugging information\n"
67
"  -h, --help           display this help and exit\n"
68
"  -V, --version        output version information and exit\n"
69 64
"\n"
70
"Report bugs to <anthony@codemonkey.ws>\n"
65
"Exposing part of the image:\n"
66
"  -o, --offset=OFFSET  offset into the image\n"
67
"  -P, --partition=NUM  only expose partition NUM\n"
68
"\n"
69
#ifdef __linux__
70
"Kernel NBD client support:\n"
71
"  -c, --connect=DEV    connect FILE to the local NBD device DEV\n"
72
"  -d, --disconnect     disconnect the specified device\n"
73
"\n"
74
#endif
75
"\n"
76
"Block device options:\n"
77
"  -r, --read-only      export read-only\n"
78
"  -s, --snapshot       use snapshot file\n"
79
"  -n, --nocache        disable host cache\n"
80
"\n"
81
"Report bugs to <qemu-devel@nongnu.org>\n"
71 82
    , name, NBD_DEFAULT_PORT, "DEVICE");
72 83
}
73 84

  

Also available in: Unified diff