The existing FSM code doesn't correctly handle FA_TOUCH on hardlinked
file sets, which causes the hardlink set to break on at least some
upgrade scenarios when minimize_writes is enabled.

Only enable FA_TOUCH on non-hardlinked files to work around the issue
for now. While at it, rearrange the conditionals around min_writes to make
it a bit clearer. Testcase adopted from original reproducer by
Fabian Vogt, thanks!

Fixes: #1278
You can view, comment on, or merge this pull request online at:

-- Commit Summary --

  * Fix (work around) FA_TOUCH not scoping correctly over hardlinks

-- File Changes --

    M lib/transaction.c (17)
    M tests/ (1)
    A tests/data/SPECS/hlbreak.spec (22)
    M tests/ (24)

-- Patch Links --

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
Rpm-maint mailing list

Reply via email to