Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#38044 - Add option to sync files

Attached to Project: Pacman
Opened by Allan McRae (Allan) - Saturday, 07 December 2013, 02:56 GMT
Last edited by Allan McRae (Allan) - Tuesday, 15 December 2015, 06:19 GMT
Task Type Bug Report
Category Backend/Core
Status Closed
Assigned To Allan McRae (Allan)
Andrew Gregory (andrewgregory)
Architecture All
Severity Low
Priority Normal
Reported Version 4.1.2
Due in Version 5.0.0
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

We looked at syncing files to disk at some stage but decided that it took too long to do by default.

It would good to add an option to do this (end of package or transaction?).
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 15 December 2015, 06:19 GMT
Reason for closing:  Implemented
Additional comments about closing:  the example hook in the alpm-hooks man page in pacman-5.0 will do this.
Comment by T. Jameson Little (beatgammit) - Saturday, 26 April 2014, 19:00 GMT
I just installed Arch Linux ARM (separate project, I know) and after upgrading packages I rebooted. The filesystem had not finished syncing, so I got partially saved files, which resulted in an unusable system.

I understand the chance for this is small on most target platforms since disks are usually fast enough, but it's essential on systems with slower disks (e.g. booting off an SD card).

End of transaction is probably good enough (that's what Arch Linux ARM does), but end of package would be safer (e.g. lost power in the middle of a big -Syu). I vote for both to be available as options.
Comment by Allan McRae (Allan) - Wednesday, 30 April 2014, 04:31 GMT
I'm going to look at adding an FileSync = Never|Transaction|Package to perform a fsync either never, at the end of the transaction, or at the end of the package.

I'm sure Dan has patches around.
Comment by Allan McRae (Allan) - Sunday, 18 October 2015, 02:40 GMT
This can be handled by hooks.

Loading...