[Rpm-maint] [rpm-software-management/rpm] Use autodetect for _minimize_writes and _flush_io (#1066)

Panu Matilainen notifications at github.com
Thu Feb 13 12:20:22 UTC 2020


pmatilai commented on this pull request.



> @@ -745,12 +745,14 @@ package or when debugging this package.\
 %_pkgverify_flags 0x0
 
 # Set to 1 to minimize writing (at the cost of more reads) to
-# conserve eg SSD disks.
-%_minimize_writes      0
+# conserve eg SSD disks. Set to -1 for enabling when runnning on SSDs.
+# Set to 0 for always off.
+%_minimize_writes      -1

This will cause %_minimize_writes to be enabled by default because of how rpmtsCreate() initializes - any non-zero value will enable it. Which is not right, -1 should probably mean "autodetect", and 0 is explicit disable.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1066#pullrequestreview-358172534
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200213/7cca1053/attachment.html>


More information about the Rpm-maint mailing list