jstaf / onedriver

A native Linux filesystem for Microsoft OneDrive
GNU General Public License v3.0
1.99k stars 96 forks source link

Avoid lock during hashing of file contents #198

Closed jstaf closed 2 years ago

jstaf commented 2 years ago

We don't actually need to lock the file while it is being hashed. In all cases, we're working on a copy of the file's data. So this reduces the amount of time that the file needs to be locked.