c1c534
From db2302bc5e5fa8b67384ca6adc85483ce5e24358 Mon Sep 17 00:00:00 2001
c1c534
Message-Id: <db2302bc5e5fa8b67384ca6adc85483ce5e24358@dist-git>
c1c534
From: Martin Kletzander <mkletzan@redhat.com>
c1c534
Date: Wed, 31 Jan 2018 16:32:36 +0100
c1c534
Subject: [PATCH] util: Use "resctrl" instead of "resctrlfs" spelling
c1c534
c1c534
Pointed out during review on one or two places, but it actually appears in lot
c1c534
more places.  So let's be consistent.
c1c534
c1c534
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
c1c534
(cherry picked from commit ebafc603c1ace128927662460d55c1a713ae5225)
c1c534
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
c1c534
c1c534
https://bugzilla.redhat.com/show_bug.cgi?id=1289368
c1c534
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
c1c534
---
c1c534
 src/qemu/qemu_process.c |  2 +-
c1c534
 src/util/virresctrl.c   | 14 +++++++-------
c1c534
 2 files changed, 8 insertions(+), 8 deletions(-)
c1c534
c1c534
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
c1c534
index 57faf9cd79..29a8d8ba53 100644
c1c534
--- a/src/qemu/qemu_process.c
c1c534
+++ b/src/qemu/qemu_process.c
c1c534
@@ -5932,7 +5932,7 @@ qemuProcessLaunch(virConnectPtr conn,
c1c534
     if (qemuProcessSetupEmulator(vm) < 0)
c1c534
         goto cleanup;
c1c534
 
c1c534
-    VIR_DEBUG("Setting up resctrlfs");
c1c534
+    VIR_DEBUG("Setting up resctrl");
c1c534
     if (qemuProcessResctrlCreate(driver, vm) < 0)
c1c534
         goto cleanup;
c1c534
 
c1c534
diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c
c1c534
index 03218a481d..a1d09c547e 100644
c1c534
--- a/src/util/virresctrl.c
c1c534
+++ b/src/util/virresctrl.c
c1c534
@@ -76,7 +76,7 @@ struct _virResctrlInfoPerType {
c1c534
     unsigned int max_cache_id;
c1c534
 
c1c534
     /* In order to be self-sufficient we need size information per cache.
c1c534
-     * Funnily enough, one of the outcomes of the resctrlfs design is that it
c1c534
+     * Funnily enough, one of the outcomes of the resctrl design is that it
c1c534
      * does not account for different sizes per cache on the same level.  So
c1c534
      * for the sake of easiness, let's copy that, for now. */
c1c534
     unsigned long long size;
c1c534
@@ -302,12 +302,12 @@ virResctrlLockInternal(int op)
c1c534
     int fd = open(SYSFS_RESCTRL_PATH, O_DIRECTORY | O_CLOEXEC);
c1c534
 
c1c534
     if (fd < 0) {
c1c534
-        virReportSystemError(errno, "%s", _("Cannot open resctrlfs"));
c1c534
+        virReportSystemError(errno, "%s", _("Cannot open resctrl"));
c1c534
         return -1;
c1c534
     }
c1c534
 
c1c534
     if (flock(fd, op) < 0) {
c1c534
-        virReportSystemError(errno, "%s", _("Cannot lock resctrlfs"));
c1c534
+        virReportSystemError(errno, "%s", _("Cannot lock resctrl"));
c1c534
         VIR_FORCE_CLOSE(fd);
c1c534
         return -1;
c1c534
     }
c1c534
@@ -328,7 +328,7 @@ static inline int
c1c534
 virResctrlLockWrite(void)
c1c534
 {
c1c534
     virReportSystemError(ENOSYS, "%s",
c1c534
-                         _("resctrlfs not supported on this platform"));
c1c534
+                         _("resctrl not supported on this platform"));
c1c534
     return -1;
c1c534
 }
c1c534
 
c1c534
@@ -347,11 +347,11 @@ virResctrlUnlock(int fd)
c1c534
     /* The lock gets unlocked by closing the fd, which we need to do anyway in
c1c534
      * order to clean up properly */
c1c534
     if (VIR_CLOSE(fd) < 0) {
c1c534
-        virReportSystemError(errno, "%s", _("Cannot close resctrlfs"));
c1c534
+        virReportSystemError(errno, "%s", _("Cannot close resctrl"));
c1c534
 
c1c534
         /* Trying to save the already broken */
c1c534
         if (flock(fd, LOCK_UN) < 0)
c1c534
-            virReportSystemError(errno, "%s", _("Cannot unlock resctrlfs"));
c1c534
+            virReportSystemError(errno, "%s", _("Cannot unlock resctrl"));
c1c534
         return -1;
c1c534
     }
c1c534
 #endif /* ! __linux__ */
c1c534
@@ -486,7 +486,7 @@ virResctrlGetInfo(virResctrlInfoPtr resctrl)
c1c534
 
c1c534
         if (i_level->types[type]) {
c1c534
             virReportError(VIR_ERR_INTERNAL_ERROR,
c1c534
-                           _("Duplicate cache type in resctrlfs for level %u"),
c1c534
+                           _("Duplicate cache type in resctrl for level %u"),
c1c534
                            level);
c1c534
             goto cleanup;
c1c534
         }
c1c534
-- 
c1c534
2.16.1
c1c534