A few options to maybe make sshfs a bit faster
This commit is contained in:
parent
b8155aa210
commit
c3ef5ed9d8
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue