-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Rsync into mount breaks drive #44
Comments
Sorry for not getting back to you on this one @sammacbeth. Gonna do another FUSE debugging push next week and this will be a priority. Pretty sure it has to do with either renaming (which we don't have much support for yet) or file metadata, but I'll update you when I've figured it out. |
rsync stores files in a temporary location before moving them into place. I tried using
|
The temporary files that rsync creates in the destination directory will be added to/duplicated in the append-only file system after the The method that seems to create the least amount of excess working-copies of the data in the hyperdrive is @andrewosh is there any Hyperdrive documentation about this topic anywhere? |
@sammacbeth here’s a work-around using a temp staging directory before applying the changes to the hyperdrive:
( Unfortunately, hyperdrive fuse stops responding after rewriting a couple of files. |
Thanks for digging into this @da2x. Hyperdrive and hyperdrive-fuse should both support ftruncate, so this must just be a bug. Can you give any more info about what you mean by "rewriting a couple of files?" Do you mean rerunning the rsync command multiple times? hyperdrive-fuse not responding after multiple runs would indicate that one of the handlers isn't terminating correctly, which will exhaust all the available FUSE threads. |
I made a directory with a 2000 files with 20 kb from /dev/rand. I then copied these over into a hypedrive. I then changed the contents of 200 of those files in the original directory and used rsync to sync the changes into the hyperdrive. It works for maybe fifty files then rsync prints |
I have a Hyperdrive with two drives mounted in the root, i.e.
I rsynced data into one of the drives from a remote machine:
This fails at the end when renaming files.
After this, I noticed that folder a seemed to have disappeared, though it is still being seeded.
If you want to try to reproduce the state of
b
, I'm seeding it at42862b84df038a057c77b391a3807da456b547a81bb9693b9d260191c7a23308
The text was updated successfully, but these errors were encountered: