aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-07-11 12:36:32 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-07-11 12:36:32 -0300
commit337008191def6507fbd1f6434348eff168a4e8a0 (patch)
treedfe2eb1caa5f4b7b5f09421b3323d139ea1a33d5
parenta7d5bef25cf5d0d6c609231e5440c9fbb5ef79ac (diff)
downloadkvmx-337008191def6507fbd1f6434348eff168a4e8a0.tar.gz
kvmx-337008191def6507fbd1f6434348eff168a4e8a0.tar.bz2
Sets no cache, sync and dirsync at shared folder mount command
-rwxr-xr-xkvmx2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index bd4e1f0..6838949 100755
--- a/kvmx
+++ b/kvmx
@@ -371,7 +371,7 @@ function kvmx_up {
if [ ! -z "$shared_folder" ] && [ ! -z "$shared_folder_mountpoint" ]; then
echo "Mounting $shared_folder on $shared_folder_mountpoint on guest..."
echo "sudo mkdir -p $shared_folder_mountpoint" | kvmx_ssh
- echo "sudo mount -t 9p -o trans=virtio shared $shared_folder_mountpoint -oversion=9p2000.L,posixacl,cache=loose" | kvmx_ssh
+ echo "sudo mount -t 9p -o trans=virtio shared $shared_folder_mountpoint -oversion=9p2000.L,posixacl,cache=none -o sync -o dirsync" | kvmx_ssh
#echo "sudo mount //10.0.2.4/qemu $shared_folder_mountpint" | kvmx_ssh
fi
fi