Messages in this thread |  | | From | Erik Hensema <> | | Subject | Re: silent semantic changes with reiser4 | | Date | Fri, 3 Sep 2004 09:54:58 +0000 (UTC) |
| |
Jan Dittmer (jdittmer@ppp0.net) wrote: > Zitat von Helge Hafting <helge.hafting@hist.no>: >> Tom Vier wrote: >> >> >What's wrong with ~/.thumbcache or a daemon that manages system wide >> cache? >> > >> > >> > >> Moving a file doen't move the associated thumbnail, and then you >> notice something is missing, or don't find the file, or have to wait >> for regeneration when the app notices a file without a tumb. >> That could take some time if you moved a directory full of postscript >> files, for example. > > Use hash + filename in ~/.thumbcache and be smart when trying to find a > thumbnail. That really can all be done in userspace.
Yes, it can be done. It's slow, ineffecient and dangerous (rename a file, lose the thumbnail... so you'd have to do some garbage collection on the thumbnail cache).
Thumbnails are actually an *excelent* example of a multistream file. Renaming/moving a file leaves the image<->thumbnail link intact. Removing the image removes the thumbnail. Copying the file to another multistream-file capable machine also copies the thumbnail, saving you the time to regenerate the thumbnail. When the target machine doesn't understand a multistream file, you simply lose the thumbnail, no harm done.
-- Erik Hensema <erik@hensema.net> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |