From a3326e23d852fdcf03e7358f631ca24f5881ac70 Mon Sep 17 00:00:00 2001 From: Anders F Björklund Date: Sun, 31 Oct 2021 13:05:25 +0100 Subject: Check the mount type for future compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pkg/machine/qemu/config.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pkg/machine/qemu/config.go') 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 { -- cgit v1.2.3-54-g00ecf