diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-08-19 17:38:58 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-08-19 17:38:58 -0300 |
commit | 26a740c1a600bb32cd440fb407afb852ee2ad676 (patch) | |
tree | 8012ddef1c83f3051db546cd7ecd25b6f0110f55 | |
parent | 3c097cb6fdc436c7f825d251245165dcd378a817 (diff) | |
download | kvmx-26a740c1a600bb32cd440fb407afb852ee2ad676.tar.gz kvmx-26a740c1a600bb32cd440fb407afb852ee2ad676.tar.bz2 |
Some sshfs enhancements
-rwxr-xr-x | kvmx | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -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 } |