Replies: 2 comments 5 replies
-
We have location watchers that rescan the location when you navigate into it. In the future, we plan to run scan jobs periodically too. I would love to know more about the clever trick by the way, we can and will always improve how we do things :) |
Beta Was this translation helpful? Give feedback.
-
i was thinking the user could run their own applications and shells with an LD_PRELOAD or, access the filesystem through a custom fuse filesystem (controlled by spacedrive), which would allow you to intercept all systems calls relating to the filesystem, and therefore update spacedrive's metadata/database in real time any time a change happens. This is somewhat clunky but could guarantee atomic updates (you can have the fs operations only complete when spacedrive is also updated) and IIRC doesn't require root (except maybe to do initial fuse setup, i suppose most linux distros don't have it on by default), it's also specific to linux. The solution mentioned by @fogodev to use filesystem watchers, makes sense. I had a quick look at the repository and saw inotify is used. I've used this in the past but quickly ran into watcher limits, which requires root to adjust (and in my experience, no limit is ever high enough, especially if you have many small-ish files), but IIRC it's async (which may not be an issue here) and doesn't support recursion properly. But i think there might be a more modern replacement by now on linux. |
Beta Was this translation helpful? Give feedback.
-
Hello!
I've read the docs on the website and the readme, but have not quite been able to figure this out.
(I haven't ran the app yet, as it's still so early)
When using spacedrive, do you need to do all your file operations (moves, deletes, etc) through it?
I'm a heavy user of shell scripts and commands to manage my files. Does this mean spacedrive needs to do periodic rescans ? Or is there a clever trick like maybe a fuse or LD_PRELOAD layer that can see all i/o calls and update the database accordingly?
Beta Was this translation helpful? Give feedback.
All reactions