I'm recreating this issue on 5.13.0-44-generic #49~20.04.1-Ubuntu SMP
Wed May 18 18:44:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

SSHFS version 2.10.0
FUSE library version: 2.9.9
fusermount version: 2.9.9
using FUSE kernel interface version 7.19

sshfs          3.6.0+repack+really2.10-0ubuntu1 amd64

Additionally, I wrote a script to exercise the bug (I want to know if I 
actually fix it by following @Martin 's instructions above.)

It's not a user friendly script - it's only a day old, but someone with
some Python and programming experience can alter it to run it

The basic idea is to mount the sshfs filesystem and get a hash / digest
on a file directly from the sshfs filesystem

   `md5sum /mnt/fuse/some/path/to/a/file.mp4`

then scp that same file over and locally hash it.

   `scp user@remote:/some/path/to/a/file.mp4 .`
   `md5sum file.mp4`  

Then compare the hashes.  If the hashes are different, then you are
seeing file corruption somewhere.

An interesting result occurs:

1 - if the testing script is allowed to do a directory listing (
os.listdir() ) to pick a random file to test, you will never get any
corruption; hash values always match.

2.  if the testing script is provided a list of files to test (see the
--dirlist option ) then you will start seeing some hash differences

I hope this helps someone.  Probably not.  I mean, if the fix is to just update 
the distribution package, then this kind of analysis is just a waste of time.

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  sshfs randomly corrupts files

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to