From dd4c331bd2e8ed366b5c55bcc2f587811702fe5c Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Tue, 4 Feb 2025 14:57:28 -0700 Subject: [PATCH] gpfswrap: Remove unused gpfs_stat_x wrapper Signed-off-by: Christof Schmitt Reviewed-by: Ralph Boehme --- lib/util/gpfswrap.c | 14 -------------- lib/util/gpfswrap.h | 2 -- 2 files changed, 16 deletions(-) diff --git a/lib/util/gpfswrap.c b/lib/util/gpfswrap.c index 2f15bf452cf..131d268cd51 100644 --- a/lib/util/gpfswrap.c +++ b/lib/util/gpfswrap.c @@ -51,8 +51,6 @@ static void (*gpfs_add_trace_fn)(int level, const char *msg); static void (*gpfs_fini_trace_fn)(void); static int (*gpfs_fstat_x_fn)(int fd, unsigned int *litemask, struct gpfs_iattr64 *iattr, size_t len); -static int (*gpfs_stat_x_fn)(const char *pathname, unsigned int *litemask, - struct gpfs_iattr64 *iattr, size_t len); int gpfswrap_init(void) { @@ -86,7 +84,6 @@ int gpfswrap_init(void) gpfs_add_trace_fn = dlsym(l, "gpfs_add_trace"); gpfs_fini_trace_fn = dlsym(l, "gpfs_fini_trace"); gpfs_fstat_x_fn = dlsym(l, "gpfs_fstat_x"); - gpfs_stat_x_fn = dlsym(l, "gpfs_stat_x"); return 0; } @@ -283,14 +280,3 @@ int gpfswrap_fstat_x(int fd, unsigned int *litemask, return gpfs_fstat_x_fn(fd, litemask, iattr, len); } - -int gpfswrap_stat_x(const char *pathname, unsigned int *litemask, - struct gpfs_iattr64 *iattr, size_t len) -{ - if (gpfs_stat_x_fn == NULL) { - errno = ENOSYS; - return -1; - } - - return gpfs_stat_x_fn(pathname, litemask, iattr, len); -} diff --git a/lib/util/gpfswrap.h b/lib/util/gpfswrap.h index e387a56446b..4db738d6736 100644 --- a/lib/util/gpfswrap.h +++ b/lib/util/gpfswrap.h @@ -51,7 +51,5 @@ void gpfswrap_add_trace(int level, const char *msg); void gpfswrap_fini_trace(void); int gpfswrap_fstat_x(int fd, unsigned int *litemask, struct gpfs_iattr64 *iattr, size_t len); -int gpfswrap_stat_x(const char *pathname, unsigned int *litemask, - struct gpfs_iattr64 *iattr, size_t len); #endif -- 2.47.2