-
-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate filename length to conform with Linux FS limits before download #142
Comments
@borouhin
|
@abraunegg I'll test this version ASAP. Currently I'm forced to resync my OneDrive because of the other issues (I've submitted #151 and I'm still investigating another one) Every resync takes almost 1 day (700.000 files, 600 Gb...) |
@abraunegg This version just crashes when I create a very long filename:
|
Thanks for the feedback |
* Rework solution for issue #142 to be similar to skipping downloads when malware is detected
@borouhin
Local validation:
|
@borouhin |
@abraunegg, I'm sorry, but you shouldn't count on me for testing anytime soon. I just want to keep my files in sync. It's 10:50 PM now here. My last sync session started at 06:30 AM and it's still (!) rescanning every single folder and file in my OneDrive directory. Yes, it's a lot of files. But OneDrive Windows client keeps them in sync without noticeable delays (after initial sync), Dropbox for Linux client (I moved to OneDrive from Dropbox after their announcement to drop other FS support except ext4) did the same job with the same files quickly enough not to notice it. Every test leads to restart of sync job, and my home server is constantly loaded with onedrive process, which impacts performance of other tasks. Sure, I could run onedrive on another machine dedicated to testing with a single small folder, but not right now, not enough time, sorry. |
@borouhin Can you give me some filesystem stats of your OneDrive folder - number of files / folders? I will see if I can create a similar nested tree with files to test against, rather than the ~300Mb test set if files that I use. |
@abraunegg, currently (not all of my file archive is yet transferred to OneDrive):
P.S. Sorry for long delay in reply, I was on vacation abroad. |
A bit more statistics. After vacation, I started onedrive in monitor mode again. There were some changes on both ends (in cloud and on the machine where I run the program). The number of files/directory/Gb - see above. Running with verbose flag, so I can track down errors (it slows down the process by itself, but otherwise I couldn't see what's exactly happening). Timeline: No errors, no crashes or restarts - but the program constantly wants to rescan the whole local folder again and again instead of actually monitoring directories and reacting to single changes. |
@borouhin
So this is how the client operates. In 'monitor' mode, it uses inotify to watch for file changes locally, however at every 'interval' performs a full scan - locally & remote. This is currently consistent with how the original client operates as well. What we could do here is 'change' how monitor mode actually operates - monitor via inotify local changes, but also then only check OneDrive for remote changes to download at the specified interval. This would negate having to enumerate through all of the local files ever X period, of which - if there 'was' a file changed locally, it would have already been picked up through inotify. Thoughts? |
PR #180 merged |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
If the file that resides on OneDrive is longer than the filename length allowed by the Linux FS (255 bytes), then the sync fails to continue until the file on OneDrive is renamed or removed.
A check needs to be added when downloading a file that it conforms to the Linux FS limits & prints an applicable message if the filename length is longer than the FS limit and is skipped.
Further details here:
#134 (comment)
The text was updated successfully, but these errors were encountered: