Feed on
Posts
Comments
推薦本文到Plurk噗浪去!
geany_vectorized_free

Geany 是一套我覺得在 Linux 作業系統底下蠻簡易及輕量的程式編輯器,之前撰寫一篇 Linux 程式開發編輯器 Geany + Fuse 遠端掛載 簡易介紹如何使用 Fuse,這次發現一個小問題,就是掛載要儲存檔案時候出現底下錯誤訊息

Error renaming temporary file: Operation not permitted.
The file on disk may now be truncated!

此錯誤訊息發生在用 Fuse 掛載遠端系統所造成,原先掛載指令如下

sshfs appleboy@xxxx.com.tw:/home/appleboy /home/git/CN
-p 22 -o reconnect,sshfs_sync -o uid=1000,gid=1000

我們只需要另外加上 workaround=rename flag 及可以解決此問題

sshfs appleboy@www.cn.ee.ccu.edu.tw:/home/appleboy /home/git/CN
-p 22 -o reconnect,sshfs_sync -o uid=1000,gid=1000
-o workaround=rename

測試環境為 Ubuntu 10.10.

推薦本文到Plurk噗浪去!