]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
gpfswrap: Remove wrapper for gpfs_set_times_path()
authorSamuel Cabrero <scabrero@samba.org>
Tue, 13 Apr 2021 15:25:39 +0000 (17:25 +0200)
committerSamuel Cabrero <scabrero@sn-devel-184>
Mon, 19 Apr 2021 12:28:30 +0000 (12:28 +0000)
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/util/gpfswrap.c
lib/util/gpfswrap.h

index f515e0649997418fcf59686ed402428656b315c6..c348ed7c5b8e5b8f29eeb3020aad139fc991ecd1 100644 (file)
@@ -38,8 +38,6 @@ static int (*gpfs_get_winattrs_path_fn)(const char *pathname,
 static int (*gpfs_get_winattrs_fn)(int fd, struct gpfs_winattr *attrs);
 static int (*gpfs_ftruncate_fn)(int fd, gpfs_off64_t length);
 static int (*gpfs_lib_init_fn)(int flags);
-static int (*gpfs_set_times_path_fn)(char *pathname, int flags,
-                                    gpfs_timestruc_t times[4]);
 static int (*gpfs_set_times_fn)(int fd, int flags, gpfs_timestruc_t times[4]);
 static int (*gpfs_quotactl_fn)(const char *pathname,
                               int cmd,
@@ -78,7 +76,6 @@ int gpfswrap_init(void)
        gpfs_get_winattrs_fn          = dlsym(l, "gpfs_get_winattrs");
        gpfs_ftruncate_fn             = dlsym(l, "gpfs_ftruncate");
        gpfs_lib_init_fn              = dlsym(l, "gpfs_lib_init");
-       gpfs_set_times_path_fn        = dlsym(l, "gpfs_set_times_path");
        gpfs_set_times_fn             = dlsym(l, "gpfs_set_times");
        gpfs_quotactl_fn              = dlsym(l, "gpfs_quotactl");
        gpfs_init_trace_fn            = dlsym(l, "gpfs_init_trace");
@@ -206,17 +203,6 @@ int gpfswrap_lib_init(int flags)
        return gpfs_lib_init_fn(flags);
 }
 
-int gpfswrap_set_times_path(char *pathname, int flags,
-                           gpfs_timestruc_t times[4])
-{
-       if (gpfs_set_times_path_fn == NULL) {
-               errno = ENOSYS;
-               return -1;
-       }
-
-       return gpfs_set_times_path_fn(pathname, flags, times);
-}
-
 int gpfswrap_set_times(int fd, int flags, gpfs_timestruc_t times[4])
 {
        if (gpfs_set_times_fn == NULL) {
index 80ebbb1821916c05f3e9e8aed70e5bac2ac9fc6b..138e6ec696e3bbaddfa220967ad8d4fa38ee55a9 100644 (file)
@@ -43,8 +43,6 @@ int gpfswrap_get_winattrs_path(const char *pathname,
 int gpfswrap_get_winattrs(int fd, struct gpfs_winattr *attrs);
 int gpfswrap_ftruncate(int fd, gpfs_off64_t length);
 int gpfswrap_lib_init(int flags);
-int gpfswrap_set_times_path(char *pathname, int flags,
-                           gpfs_timestruc_t times[4]);
 int gpfswrap_set_times(int fd, int flags, gpfs_timestruc_t times[4]);
 int gpfswrap_quotactl(const char *pathname, int cmd, int id, void *bufp);
 int gpfswrap_init_trace(void);