|
@@ -589,6 +589,9 @@ int main(int argc, char **argv)
|
|
const char *pid_file_name = NULL;
|
|
const char *pid_file_name = NULL;
|
|
const char *selinux_label = NULL;
|
|
const char *selinux_label = NULL;
|
|
BlockExportOptions *export_opts;
|
|
BlockExportOptions *export_opts;
|
|
|
|
+#if HAVE_NBD_DEVICE
|
|
|
|
+ struct NbdClientOpts opts;
|
|
|
|
+#endif
|
|
|
|
|
|
#ifdef CONFIG_POSIX
|
|
#ifdef CONFIG_POSIX
|
|
os_setup_early_signal_handling();
|
|
os_setup_early_signal_handling();
|
|
@@ -1145,7 +1148,7 @@ int main(int argc, char **argv)
|
|
if (device) {
|
|
if (device) {
|
|
#if HAVE_NBD_DEVICE
|
|
#if HAVE_NBD_DEVICE
|
|
int ret;
|
|
int ret;
|
|
- struct NbdClientOpts opts = {
|
|
|
|
|
|
+ opts = (struct NbdClientOpts) {
|
|
.device = device,
|
|
.device = device,
|
|
.fork_process = fork_process,
|
|
.fork_process = fork_process,
|
|
.verbose = verbose,
|
|
.verbose = verbose,
|