]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
gpfswrap: Remove unused gpfs_stat_x wrapper
authorChristof Schmitt <cs@samba.org>
Tue, 4 Feb 2025 21:57:28 +0000 (14:57 -0700)
committerJule Anger <janger@samba.org>
Thu, 6 Feb 2025 11:24:42 +0000 (11:24 +0000)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/util/gpfswrap.c
lib/util/gpfswrap.h

index 2f15bf452cf6ab6a6a4043729d392fa457d0fd07..131d268cd51c25f68186668d63e53e5ff996cbb6 100644 (file)
@@ -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);
-}
index e387a56446bb6ebdd44a0d6b1a85b471c9852759..4db738d67360af38967787eb700e788e83488b44 100644 (file)
@@ -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