s3fs: how to force remount on errors?
- by Alexander Gladysh
I use s3fs 1.33 on Ubuntu 9.10.
Regularily it gives me errors like this:
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: close failed on "/mnt/s3/mybucket/filename": Software caused connection abort (103)
rsync error: error in file IO (code 11) at receiver.c(731) [receiver=3.0.6]
rsync: connection unexpectedly closed (86 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
Any attempt to work with mounted directory after that gives this error:
Transport endpoint is not connected
To get rid of this, I have to remount.
Is there a way to force a remount automatically?