From 26a740c1a600bb32cd440fb407afb852ee2ad676 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 19 Aug 2020 17:38:58 -0300 Subject: Some sshfs enhancements --- kvmx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/kvmx b/kvmx index d380b55..113826f 100755 --- a/kvmx +++ b/kvmx @@ -666,7 +666,7 @@ function kvmx_up { # Restore IFS for a while or kvmx_ssh won't work IFS="$old_ifs" - echo "Mounting $shared_folder on $shared_folder_mountpoint $id on guest..." + echo "Mounting $shared_folder on $shared_folder_mountpoint ($id) on guest using 9p..." echo "sudo mkdir -p $shared_folder_mountpoint" | kvmx_ssh echo "sudo mount -t 9p -o trans=virtio $id $shared_folder_mountpoint -oversion=9p2000.L,posixacl,cache=$shared_folders_cache -o sync -o dirsync" | kvmx_ssh IFS="," @@ -686,6 +686,7 @@ function kvmx_up { # Temporaly reset IFS so kvmx_sshfs executes correctly IFS="$old_ifs" + echo "Mounting $shared_folder on $shared_folder_mountpoint ($id) on host using SSHFS..." kvmx_sshfs $shared_folder $shared_folder_mountpoint IFS="," @@ -865,9 +866,16 @@ function kvmx_sshfs { # See https://github.com/libfuse/sshfs/issues/82 about "-o writeback_cache=no" # http://www.admin-magazine.com/HPC/Articles/Sharing-Data-with-SSHFS - sshfs $SSH_LOGIN@127.0.0.1:$folder $mountpoint $SSH_OPTS -o nonempty -o sshfs_sync -o sync_readdir \ - -o cache=no -o follow_symlinks -o sync_read \ - -o workaround=rename -o noforget \ + sshfs $SSH_LOGIN@127.0.0.1:$folder $mountpoint $SSH_OPTS -o nonempty \ + -o sshfs_sync \ + -o sync_readdir \ + -o cache=no \ + -o follow_symlinks \ + -o sync_read \ + -o workaround=none \ + -o noforget \ + -o reconnect \ + -o no_readahead \ -o compression=no -p $SSH } -- cgit v1.2.3