[Rpm-maint] [rpm-software-management/rpm] Auto-enable optimizations for non-rotational disks on Linux (#949)

Michal Domonkos notifications at github.com
Mon Jan 27 15:43:35 UTC 2020


dmnks commented on this pull request.



> @@ -1415,8 +1467,23 @@ static int rpmtsSetup(rpmts ts, rpmprobFilterFlags ignoreSet)
     return 0;
 }
 
+/* Enable / disable optimizations for solid state disks */
+static void setSSD(int enable)
+{
+    if (enable) {
+	rpmlog(RPMLOG_DEBUG, "optimizing for non-rotational disks\n");
+	rpmPushMacro(NULL, "_minimize_io", NULL, "1", 0);

A quick look-up in the rpm repo reveals there's no `_minimize_io`. Are you sure this is not a mistake? :)

-- 
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/949#pullrequestreview-348762399
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200127/759a71f2/attachment-0001.html>


More information about the Rpm-maint mailing list