A few options to maybe make sshfs a bit faster

This commit is contained in:
fosslinux 2018-12-27 22:41:58 -08:00 committed by Samuel Tyler
parent b8155aa210
commit c3ef5ed9d8
1 changed files with 5 additions and 2 deletions

View File

@ -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"