[Digikam-devel] [Bug 109820] Offer: Utility script to export tag information of images into the filesystem

Mats Ahlgren ahlgren at mit.edu
Thu Aug 3 18:07:49 BST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=109820         




------- Additional Comments From ahlgren mit edu  2006-08-03 19:07 -------
> Without hard links in the "export"-directory linking from "export/linktree" to "export/photo directory"
> you cannot move the  linktree  to somewhere else because this would  break (relativ) soft  links.
> However this was "Problem 2" you described in your Mail from 2006-07-28 (Comment #15).
> Absolute soft links are no good because of  "Problem 1". 

That's true; you can't. But that isn't an issue. You instead move the "Export" directory. =) The Export directory can be moved to anywhere. That's the point of keeping the Linktree and Photo in this movable directory.

> It cannot work if  the directory for "digikam collection" (A) and the directory for "photo directory" (B)
> are on different filesystems simply because hard linking files from (A) to (B) is technically
> impossible in this case. In your examples for the proof of concept they were on the very same
> filesystem,  both in  your HOME directory. This of course works. 

The very last line of my simulation proves that this does indeed work:

>> The files ~/DigiKamExport/photos/hard-link-to-example.jpg and ~/AnotherComputer/DigiKamExport/photos/hard-link-to-example.jpg are different files now.
> mats moonfish:~/AnotherComputer
> $ cat ../DigiKamExport/linktree/soft-relative-link-to-hard-link-to-example.jpg
test: 123 

When tar uncompresses files, the hard links are no longer bound to the same file. If the output was "test2: 234", then I'd be wrong.

I've emailed you the .tgz file in my experiment. If you extract it you'll see it works.



More information about the Digikam-devel mailing list