[Aptitude-devel] Bug#906695: Bug#906695: aptitude: apt doesn't call fsync on the file extended_states
Axel Beckert
abe at debian.org
Sun Aug 19 21:00:58 BST 2018
Control: tag -1 + moreinfo
,Hi Mikulas
Mikulas Patocka wrote:
> Package: aptitude
^^^^^^^^
> * What led up to the situation?
>
> apt doesn't call fsync when writing the file extended_states - so that if
^^^
> If you strace aptitude, you can see that it writes the file
^^^^^^^^
> I had my file extended_states corrupted when the system crashed while
> doing unattended upgrades.
^^^^^^^^^^^^^^^^^^^
> apt should call fsync before closing the file handle
^^^
You've mentioned three different package managing tools: apt, aptitude
and unattended-upgrades.
Since you've straced aptitude, I assume you meant aptitude where you
wrote apt. But then again unattended-upgrades uses apt, not aptitude.
Please clarify!
Regards, Axel
--
,''`. | Axel Beckert <abe at debian.org>, https://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
More information about the Aptitude-devel
mailing list