4 ms·
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
by mplewis 12y ago
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/repair.go https://github.com/oniony/TMSU/blob/master/src/tmsu/cli/repa...
- ars 12y agoI wonder why he doesn't use EA's where available (or does he?)
- albertzeyer 12y agoWhat is EA?
- Someone 12y agoProbably Extended Attributes (http://en.m.wikipedia.org/wiki/Extended_file_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.
- albertzeyer 12y agoAh. Also, depending on the FS, they are probably too limited, e.g. in size (only 4kb for ext2/3/4).
- dingaling 12y ago> Weakness is that they can (will) get lost in tools that do not. Including, frustratingly, Linux's NFS implementation. A WONTFIX apparently.
- joosters 12y agoAh, I see, thanks. The FAQ also explains some of the strengths and weaknesses of this approach: https://github.com/oniony/TMSU/wiki/FAQ https://github.com/oniony/TMSU/wiki/FAQ