Mail Index


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ApacheGallery] treating hardlinked files efficiently?



Hi,

what I'd like to have is a "virtual" directory tree that is browseable by
picture tags; so that, for example, the same image would be reachable at
"/transportation/sea/ship/Titanic-from-the-movie.jpg" and
"/movies/Hollywood/Titanic/Titanic-from-the-movie.jpg". (I don't have such
an image, this is just an example. :)

"transportation/sea/ship" and "movies/Hollywood/Titanic" are hierarchical
tags.

One pretty easy way of accomplishing this is to actually have the directory
structure associated with the tags and hardlink the pictures to all "tag"
directories they belong to.

This has the drawback that the cache directory will contain multiple copies
of the variously resized versions of a hardlinked picture (one for each path
it was accessed under).

Maybe the cache directory could be reorganized to store resized versions
based on the md5sum (or even just the inode number) of the original image?
This would do away with the redundancy.

Andras

-- 
                 Andras Korn <korn at chardonnay.math.bme.hu>
                 <http://chardonnay.math.bme.hu/~korn/>	QOTD:
               A husband is a lover who pushed his luck too far.
_______________________________________________
users mailing list
[email protected]
http://ufo.hestdesign.com/cgi-bin/mailman/listinfo/agusers