mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
virtiofsd: remove mountpoint dummy argument
Classic FUSE file system daemons take a mountpoint argument but virtiofsd exposes a vhost-user UNIX domain socket instead. The mountpoint argument is not used by virtiofsd but the user is still required to pass a dummy argument on the command-line. Remove the mountpoint argument to clean up the command-line. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
7387863d03
commit
67aab02272
4 changed files with 7 additions and 31 deletions
|
@ -1297,7 +1297,7 @@ int main(int argc, char *argv[])
|
|||
return 1;
|
||||
}
|
||||
if (opts.show_help) {
|
||||
printf("usage: %s [options] <mountpoint>\n\n", argv[0]);
|
||||
printf("usage: %s [options]\n\n", argv[0]);
|
||||
fuse_cmdline_help();
|
||||
fuse_lowlevel_help();
|
||||
ret = 0;
|
||||
|
@ -1308,13 +1308,6 @@ int main(int argc, char *argv[])
|
|||
goto err_out1;
|
||||
}
|
||||
|
||||
if (opts.mountpoint == NULL) {
|
||||
printf("usage: %s [options] <mountpoint>\n", argv[0]);
|
||||
printf(" %s --help\n", argv[0]);
|
||||
ret = 1;
|
||||
goto err_out1;
|
||||
}
|
||||
|
||||
if (fuse_opt_parse(&args, &lo, lo_opts, NULL) == -1) {
|
||||
return 1;
|
||||
}
|
||||
|
@ -1374,7 +1367,7 @@ int main(int argc, char *argv[])
|
|||
goto err_out2;
|
||||
}
|
||||
|
||||
if (fuse_session_mount(se, opts.mountpoint) != 0) {
|
||||
if (fuse_session_mount(se) != 0) {
|
||||
goto err_out3;
|
||||
}
|
||||
|
||||
|
@ -1393,7 +1386,6 @@ err_out3:
|
|||
err_out2:
|
||||
fuse_session_destroy(se);
|
||||
err_out1:
|
||||
free(opts.mountpoint);
|
||||
fuse_opt_free_args(&args);
|
||||
|
||||
if (lo.root.fd >= 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue