graysky2 / anything-sync-daemon

Symlinks and syncs user specified dirs to RAM thus reducing HDD/SDD calls and speeding-up the system.
https://wiki.archlinux.org/index.php/Anything-sync-daemon
MIT License
349 stars 44 forks source link

do not create/shutdown rampath if there are files open #8

Closed testbird closed 7 years ago

testbird commented 11 years ago

As proceding with files open causes data loss/corruption, better return an error and abort if there are open files (check lsof $RAMPATH and how ramlog implemented this), to avoid creating/destroying the rampath (symlink/mount) on top/below of open files.

This should especially prevent messing up data integrity when the system is running, and user or package manager stops/starts asd.

graysky2 commented 11 years ago

Plz send a pull request.

testbird commented 11 years ago

I'm sorry I can't.

But please leave the issues open, so others don't have to fall to the same trap as I had in assesing asd. It can cause serious data corruption as long as it is not made robust.

graysky2 commented 7 years ago

This has been in the addressed in the man page for a while now... closing.

https://github.com/graysky2/anything-sync-daemon/blob/master/doc/asd.1#L194