summaryrefslogtreecommitdiff
path: root/pkg/machine/qemu/config.go
diff options
context:
space:
mode:
authorAnders F Björklund <anders.f.bjorklund@gmail.com>2021-10-31 13:05:25 +0100
committerAnders F Björklund <anders.f.bjorklund@gmail.com>2021-12-30 13:37:34 +0100
commita3326e23d852fdcf03e7358f631ca24f5881ac70 (patch)
tree028f18b99698b0a7efe8518d2e8b01c85e9677d3 /pkg/machine/qemu/config.go
parent8e7eeaa4dd14621bda15e396fcd7b9187bc500c5 (diff)
downloadpodman-a3326e23d852fdcf03e7358f631ca24f5881ac70.tar.gz
podman-a3326e23d852fdcf03e7358f631ca24f5881ac70.tar.bz2
podman-a3326e23d852fdcf03e7358f631ca24f5881ac70.zip
Check the mount type for future compatibility
There are other mount types available, such as NFS or SMB, or one could use reverse sshfs for better compatibility. It could either be a global option, or it could perhaps be overridden for each volume (like the container volumes). Refactor the creation of the options string or array. Allow specifying the volume as read-only, if desired. [NO NEW TESTS NEEDED] Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Diffstat (limited to 'pkg/machine/qemu/config.go')
-rw-r--r--pkg/machine/qemu/config.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkg/machine/qemu/config.go b/pkg/machine/qemu/config.go
index 177487953..e76509bb1 100644
--- a/pkg/machine/qemu/config.go
+++ b/pkg/machine/qemu/config.go
@@ -36,10 +36,11 @@ type MachineVM struct {
}
type Mount struct {
- Type string
- Tag string
- Source string
- Target string
+ Type string
+ Tag string
+ Source string
+ Target string
+ ReadOnly bool
}
type Monitor struct {