From c3ef5ed9d82380df129e36d1c7cb49b92b18da44 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Thu, 27 Dec 2018 22:41:58 -0800 Subject: [PATCH] A few options to maybe make sshfs a bit faster --- sshfs_gui.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sshfs_gui.sh b/sshfs_gui.sh index a617fe0..bff8fcc 100755 --- a/sshfs_gui.sh +++ b/sshfs_gui.sh @@ -137,7 +137,7 @@ configure_mount() { if ! ssh "$server_name" "test -d $sshfs_remote_path" then - if dec_box "Directory does not exist on remote host, create?" + if dec_box "Directory $sshfs_remote_path does not exist on remote host, create?" then if ! error_msg=$(ssh "$server_name" "mkdir $sshfs_remote_path" 2>&1) then @@ -146,7 +146,10 @@ configure_mount() { fi fi - if error_msg=$(sshfs "$server_name:$sshfs_remote_path" "$sshfs_local_path" 2>&1) + if error_msg=$(sshfs \ + "$server_name:$sshfs_remote_path" \ + "$sshfs_local_path" \ + -oauto_cache,reconnect,Compression=no 2>&1) then kill $info_pid succ_box "Successfuly linked $sshfs_local_path to $sshfs_remote_path on $server_name"