From 81200218607b00edc63ead440fe73391743f07ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Thu, 13 Jan 2022 18:22:43 +0100 Subject: [PATCH] util: remove {Get,Set}UnprivSGIO MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These are no longer used. Signed-off-by: Ján Tomko Reviewed-by: Andrea Bolognani --- src/util/virutil.c | 21 --------------------- src/util/virutil.h | 7 ------- 2 files changed, 28 deletions(-) diff --git a/src/util/virutil.c b/src/util/virutil.c index 4dc421a85f..8a6efd4d5c 100644 --- a/src/util/virutil.c +++ b/src/util/virutil.c @@ -1325,27 +1325,6 @@ virValidateWWN(const char *wwn) } -int -virSetDeviceUnprivSGIO(const char *path G_GNUC_UNUSED, - const char *sysfs_dir G_GNUC_UNUSED, - int unpriv_sgio G_GNUC_UNUSED) -{ - virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("unpriv_sgio is not supported by this kernel")); - return -1; -} - -int -virGetDeviceUnprivSGIO(const char *path G_GNUC_UNUSED, - const char *sysfs_dir G_GNUC_UNUSED, - int *unpriv_sgio G_GNUC_UNUSED) -{ - virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("unpriv_sgio is not supported by this kernel")); - return -1; -} - - /** * virParseOwnershipIds: * diff --git a/src/util/virutil.h b/src/util/virutil.h index c8b8445bbc..6bb55918ad 100644 --- a/src/util/virutil.h +++ b/src/util/virutil.h @@ -116,13 +116,6 @@ bool virDoesGroupExist(const char *name); bool virValidateWWN(const char *wwn); -int virSetDeviceUnprivSGIO(const char *path, - const char *sysfs_dir, - int unpriv_sgio); -int virGetDeviceUnprivSGIO(const char *path, - const char *sysfs_dir, - int *unpriv_sgio); - int virParseOwnershipIds(const char *label, uid_t *uidPtr, gid_t *gidPtr);