Bug 847463 - geeqie zeros out hardlinked files on metadata save
Summary: geeqie zeros out hardlinked files on metadata save
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: geeqie
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michael Schwendt
QA Contact: Fedora Extras Quality Assurance
URL: https://sourceforge.net/tracker/?func...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-11 17:45 UTC by Matthew Miller
Modified: 2013-07-31 22:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-31 22:04:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Matthew Miller 2012-08-11 17:45:13 UTC
Description of problem:

If I have a file name1.jpg with a hardlink name2.jpg (perhaps in different albums) and change and save the keywords on name1.jpg, name2.jpg will be truncated to 0.


Version-Release number of selected component (if applicable):

1.0-15.fc17

How reproducible:

Every time

Steps to Reproduce:
1. ln name1.jpg name2.jpg
2. in geeqie, display name1.jpg, press ctrl-k to bring up the metadata editor
3. press ctrl-s to save metadata; say "okay" if prompted to confirm
4. watch name2.jpg get destroyed.
  
Actual results:

Files become unlinked. "name1.jpg is successfully updated, but "name2.jpg" is truncated to zero bytes.

Expected results:

Files remain linked. Update saved successfully.

Additional info:

Comment 1 Matthew Miller 2012-08-11 17:50:27 UTC
Upstream bug report: https://sourceforge.net/tracker/?func=detail&aid=3556363&group_id=222125&atid=1054680


Tested with both F17 and F15.

Comment 2 Michael Schwendt 2012-08-13 13:10:13 UTC
Cannot reproduce that yet. No truncation of name2.jpg here.

What are your "Metadata" settings in the Preferences? Screenshot could tell.
Could you attach an strace of a Geeqie session when you reproduce the problem?

Comment 3 Matthew Miller 2012-08-13 14:25:32 UTC
Sorry -- the step missing is:

0. In Preferences under Metadata, check "1) Save metadata in image files, resp. sidecar files, according to XMP standard".

Otherwise, it doesn't try to write to the files at all, which (not surprisingly) doesn't cause any problem.

Comment 4 Michael Schwendt 2012-08-14 11:15:49 UTC
Still cannot reproduce it (with ext4 fs). For the given test case, the two files stay hardlinked.

Comment 5 Fedora End Of Life 2013-07-04 01:10:43 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Fedora End Of Life 2013-07-31 22:04:12 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.