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