Live data from Hacker News

TMSU is a tool for tagging your files

tmsu.org

1–10 of 65 posts

Re: TMSU is a tool for tagging your files

#3
Without the virtual file system, does this work by hashing the files? That would make it very slow to use on larger files. If I was to tag my movie collection, would TMSU have to load every byte of every movie in order to show the file tags?

Re: TMSU is a tool for tagging your files

#5
post #3

Without the virtual file system, does this work by hashing the files? That would make it very slow to use on larger files. If I was to tag my movie collection, would TMSU have to load every byte of every movie in order to show the file tags?

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...

Re: TMSU is a tool for tagging your files

#6
post #5
post #3

Without the virtual file system, does this work by hashing the files? That would make it very slow to use on larger files. If I was to tag my movie collection, would TMSU have to load every byte of every movie in order to show the file tags?

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...

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

Re: TMSU is a tool for tagging your files

#7
post #5
post #3

Without the virtual file system, does this work by hashing the files? That would make it very slow to use on larger files. If I was to tag my movie collection, would TMSU have to load every byte of every movie in order to show the file tags?

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

Re: TMSU is a tool for tagging your files

#8
post #3

Without the virtual file system, does this work by hashing the files? That would make it very slow to use on larger files. If I was to tag my movie collection, would TMSU have to load every byte of every movie in order to show the file tags?

It seems that this also hashes the files to produce a fingerprint. Check out the fingerprinter [1] for the raw details on how it's done, but basically, if the file is below the "sparseFingerprintThreshold" of 5 MB, the whole file is hashed. Any file above is "sparsely hashed" where the first 512 KB, middle 512 KB, and end 512 KB are hashed and combined to produce the fingerprint for that file. It shouldn't produce any performance concerns on large files, so it should be safe to use for your movie collection.

[1] https://github.com/oniony/TMSU/blob/master/src/tmsu/common/f...

Re: TMSU is a tool for tagging your files

#9
I remember looking at this a few years ago. My main reason for not using it was the time it would have taken to tag all my files.

Basically, if you have so many files that it's worth tagging them, you need to spend a lot of time tagging, and if you have so few that it's reasonable to tag them all, you don't need this system. If you have a manageable number but expect tagging to be useful in the near future, then this might be useful.

I'd be interested in hearing from people who have found a use for TMSU.

Re: TMSU is a tool for tagging your files

#10
post #9

I remember looking at this a few years ago. My main reason for not using it was the time it would have taken to tag all my files. Basically, if you have so many files that it's worth tagging them, you need to spend a lot of time tagging, and if you have so few that it's reasonable to tag them all, you don't need this system. If you have a manageable number but expect tagging to be useful in the near future, then this…

I have a library of a lot of ebooks about a lot of subjects, I order them by folders, but is very common to have interesections on the topics they cover. I could tag all them with the folder name, and then manually tag the subtopics each book covers.

edit: too bad it isn't on ubuntu repositories. I've a personal policy to avoid programs outside the repositories

Post reply on HN