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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from ahlgren@mit.edu
------- 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.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

krienke
Am Donnerstag, 3. August 2006 19:07 schrieb Mats Ahlgren:
> 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.

I think there was a misundertanding. The problems I described were problems
that arise when creating the photo linktree structure, not when extracting
such a structure from a tar archive. This will of course work.

Did you Mats test the script I provided under

http://www.uni-koblenz.de/~krienke/digitaglinktree 

It should do the trick now. For me it now works fine. Please test it.

Thanks
Rainer
--
---------------------------------------------------------------------------
Rainer Krienke, Universitaet Koblenz, Rechenzentrum, Raum A022
Universitaetsstrasse 1, 56070 Koblenz, Tel: +49 261287 -1312, Fax: -1001312
Mail: [hidden email], Web: http://www.uni-koblenz.de/~krienke
Get my public PGP key: http://www.uni-koblenz.de/~krienke/mypgp.html
---------------------------------------------------------------------------

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel

attachment0 (196 bytes) Download Attachment