tag 635683 pending
thanks
Hello,
Bug #635683 reported by you has been fixed in the Git repository. You can
see the changelog below, and you can check the diff of the fix at:
http://git.debian.org/?p=dpkg/dpkg.git;a=commitdiff;h=efcf279
---
commit efcf279a50aba3369b24d062017d581006d47d9b
Author: Guillem Jover <[email protected]>
Date: Sat Aug 13 03:19:24 2011 +0200
dpkg: Defer hardlink renames to avoid breakage on unpack
This fixes two issues related to making the new file contents available
through an alternative but final path before
1) the one "carrying" the content has been fsync()ed, to avoid getting
garbage on system failure.
2) the deferred fsync() on the main path has been performed, avoiding
a possible error when reopening the file for writing if it's currently
under execution.
Deferring the hardlink is safe as they are always after the tar entry
containing the actual file data.
Regression introduced in commit 9cd41fdda1c27169c52d73b3b3ce71991d724994.
Closes: #635683
Reported-by: Niko Tyni <[email protected]>
Based-on-patch-by: Jonathan Nieder <[email protected]>
Signed-off-by: Guillem Jover <[email protected]>
diff --git a/debian/changelog b/debian/changelog
index dcf6f0f..a333333 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -183,6 +183,11 @@ dpkg (1.16.1) UNRELEASED; urgency=low
Closes: #293280
* Add new --raw-extract option to dpkg-deb combining --control and
--extract. Closes: #552123
+ * Defer hardlink renames so that there's never a point were the new
+ file contents are accessible from the final path before they have
+ been fsync()ed and cannot be executed causing ETXTBSY when trying
+ to open the to be installed paths for writing.
+ Thanks to Jonathan Nieder <[email protected]>. Closes: #635683
[ Updated dpkg translations ]
* German (Sven Joachim). Closes: #620312
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]