bhyve: fix virtio-9p src/dst order

For the virtio-9p bhyve command line argument, the proper order
is mount_tag=/path/to/host/dir, not the opposite.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Roman Bogorodskiy 2020-10-10 08:08:07 +04:00
parent 1450672071
commit 476bf54e86
3 changed files with 3 additions and 3 deletions

View File

@ -607,8 +607,8 @@ bhyveBuildFSArgStr(const virDomainDef *def G_GNUC_UNUSED,
virCommandAddArgFormat(cmd, "%d:%d,virtio-9p,%s=%s%s",
fs->info.addr.pci.slot,
fs->info.addr.pci.function,
fs->src->path,
fs->dst,
fs->src->path,
virBufferCurrentContent(&params));
return 0;

View File

@ -7,4 +7,4 @@
-s 0:0,hostbridge \
-s 2:0,ahci,hd:/tmp/freebsd.img \
-s 3:0,virtio-net,faketapdev,mac=52:54:00:b9:94:02 \
-s 4:0,virtio-9p,/shared/dir=shared_dir,ro bhyve
-s 4:0,virtio-9p,shared_dir=/shared/dir,ro bhyve

View File

@ -7,4 +7,4 @@
-s 0:0,hostbridge \
-s 2:0,ahci,hd:/tmp/freebsd.img \
-s 3:0,virtio-net,faketapdev,mac=52:54:00:b9:94:02 \
-s 4:0,virtio-9p,/shared/dir=shared_dir bhyve
-s 4:0,virtio-9p,shared_dir=/shared/dir bhyve