Lines Matching +full:build +full:- +full:user +full:- +full:static

4  * Copyright (c) 2003-2008 Fabrice Bellard
35 #include "monitor/monitor-internal.h"
38 #include "qapi/qapi-visit-block-core.h"
39 #include "qapi/qapi-visit-block-export.h"
40 #include "qapi/qapi-visit-control.h"
43 #include "qapi/qobject-input-visitor.h"
45 #include "qemu/help-texts.h"
46 #include "qemu-version.h"
48 #include "qemu/config-file.h"
49 #include "qemu/error-report.h"
53 #include "qemu/main-loop.h"
58 #include "storage-daemon/qapi/qapi-commands.h"
59 #include "storage-daemon/qapi/qapi-init-commands.h"
64 static const char *pid_file;
65 static char *pid_file_realpath;
66 static volatile bool exit_requested = false;
78 static void help(void) in help()
84 " -h, --help display this help and exit\n" in help()
85 " -T, --trace [[enable=]<pattern>][,events=<file>][,file=<file>]\n" in help()
87 " -V, --version output version information and exit\n" in help()
89 " --blockdev [driver=]<driver>[,node-name=<N>][,discard=ignore|unmap]\n" in help()
90 " [,cache.direct=on|off][,cache.no-flush=on|off]\n" in help()
91 " [,read-only=on|off][,auto-read-only=on|off]\n" in help()
92 " [,force-share=on|off][,detect-zeroes=on|off|unmap]\n" in help()
96 " --chardev <options> configure a character device backend\n" in help()
99 " --daemonize daemonize the process, and have the parent exit\n" in help()
102 " --export [type=]nbd,id=<id>,node-name=<node-name>[,name=<export-name>]\n" in help()
105 " (requires --nbd-server)\n" in help()
108 " --export [type=]fuse,id=<id>,node-name=<node-name>,mountpoint=<file>\n" in help()
109 " [,growable=on|off][,writable=on|off][,allow-other=on|off|auto]\n" in help()
114 " --export [type=]vhost-user-blk,id=<id>,node-name=<node-name>,\n" in help()
115 " addr.type=unix,addr.path=<socket-path>[,writable=on|off]\n" in help()
116 " [,logical-block-size=<block-size>][,num-queues=<num-queues>]\n" in help()
118 " vhost-user-blk device over UNIX domain socket\n" in help()
119 " --export [type=]vhost-user-blk,id=<id>,node-name=<node-name>,\n" in help()
121 " [,logical-block-size=<block-size>][,num-queues=<num-queues>]\n" in help()
123 " vhost-user-blk device over file descriptor\n" in help()
127 " --export [type=]vduse-blk,id=<id>,node-name=<node-name>\n" in help()
128 " ,name=<vduse-name>[,writable=on|off]\n" in help()
129 " [,num-queues=<num-queues>][,queue-size=<queue-size>]\n" in help()
130 " [,logical-block-size=<logical-block-size>]\n" in help()
131 " [,serial=<serial-number>]\n" in help()
133 " vduse-blk device\n" in help()
136 " --monitor [chardev=]name[,mode=control][,pretty[=on|off]]\n" in help()
139 " --nbd-server addr.type=inet,addr.host=<host>,addr.port=<port>\n" in help()
140 " [,tls-creds=<id>][,tls-authz=<id>][,max-connections=<n>]\n" in help()
141 " --nbd-server addr.type=unix,addr.path=<path>\n" in help()
142 " [,tls-creds=<id>][,tls-authz=<id>][,max-connections=<n>]\n" in help()
145 " --object help list object types that can be added\n" in help()
146 " --object <type>,help list properties for the given object type\n" in help()
147 " --object <type>[,<property>=<value>...]\n" in help()
154 " --pidfile <path> write process ID to a file after startup\n" in help()
173 static void init_qmp_commands(void) in init_qmp_commands()
183 static int getopt_set_loc(int argc, char **argv, const char *optstring, in getopt_set_loc()
192 loc_set_cmdline(argv, save_index, MAX(1, optind - save_index)); in getopt_set_loc()
198 * Process QSD command-line arguments.
203 * arguments pertaining to the QSD process (like --help or --daemonize)
204 * are processed. This pass is done before most of the QEMU-specific
206 * so must only process arguments that are not really QEMU-specific.
209 * QEMU/QSD-specific arguments. Many of these arguments are effectively
210 * translated to QMP commands (like --blockdev for blockdev-add, or
211 * --export for block-export-add).
213 static void process_options(int argc, char *argv[], bool pre_init_pass) in process_options()
217 static const struct option long_options[] = { in process_options()
224 {"nbd-server", required_argument, NULL, OPTION_NBD_SERVER}, in process_options()
233 * In contrast to the system emulator, QEMU-specific options are processed in process_options()
238 while ((c = getopt_set_loc(argc, argv, "-hT:V", long_options)) != -1) { in process_options()
241 /* Should this argument be processed in the pre-init pass? */ in process_options()
265 printf("qemu-storage-daemon version " in process_options()
302 * --daemonize is parsed before monitor_init_globals(), so in process_options()
305 fprintf(stderr, "--daemonize not supported in this build\n"); in process_options()
366 static void pid_file_cleanup(void) in pid_file_cleanup()
371 static void pid_file_init(void) in pid_file_init()