Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You may want to check out the repair command. It seems to show that TMSU keeps track of file locations on disk. If you move a file, it can find it if it hasn't been modified. If you move and modify a file, it can't find it and will mark it missing.

https://github.com/oniony/TMSU/blob/master/src/tmsu/cli/repa...



Ah, I see, thanks. The FAQ also explains some of the strengths and weaknesses of this approach:

https://github.com/oniony/TMSU/wiki/FAQ


I wonder why he doesn't use EA's where available (or does he?)


What is EA?


Probably Extended Attributes (http://en.m.wikipedia.org/wiki/Extended_file_attributes)

They stick better with files, as long as your tools know about them and handle them fine. Weakness is that they can (will) get lost in tools that do not. There are many of them: zip-unzip, tar-untar, http requests, ftp, etc.


> Weakness is that they can (will) get lost in tools that do not.

Including, frustratingly, Linux's NFS implementation. A WONTFIX apparently.


Ah. Also, depending on the FS, they are probably too limited, e.g. in size (only 4kb for ext2/3/4).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: