diff options
author | Ralph Boehme <slow@samba.org> | 2022-05-17 16:52:21 +0200 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-06-09 08:54:17 +0000 |
commit | c3ce1fec590d95a2d848bce52b059784eeda430a (patch) | |
tree | 9e3d0f1074a0d10357b495bab9b58715f6701021 | |
parent | b8cc300d226fe6a04ce26d6f91fcd484e4f0403a (diff) | |
download | samba-c3ce1fec590d95a2d848bce52b059784eeda430a.tar.gz |
lib/util/gpfswrap: remove unused gpfswrap_get_winattrs_path()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15069
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jun 3 21:53:31 UTC 2022 on sn-devel-184
(cherry picked from commit 3bd753983c8dac33b483affa859984b7e3350d65)
-rw-r--r-- | lib/util/gpfswrap.c | 14 | ||||
-rw-r--r-- | lib/util/gpfswrap.h | 2 |
2 files changed, 0 insertions, 16 deletions
diff --git a/lib/util/gpfswrap.c b/lib/util/gpfswrap.c index b71a1606e7f..d05358e141e 100644 --- a/lib/util/gpfswrap.c +++ b/lib/util/gpfswrap.c @@ -33,8 +33,6 @@ static int (*gpfs_set_winattrs_path_fn)(const char *pathname, struct gpfs_winattr *attrs); static int (*gpfs_set_winattrs_fn)(int fd, int flags, struct gpfs_winattr *attrs); -static int (*gpfs_get_winattrs_path_fn)(const char *pathname, - struct gpfs_winattr *attrs); 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); @@ -75,7 +73,6 @@ int gpfswrap_init(void) gpfs_get_realfilename_path_fn = dlsym(l, "gpfs_get_realfilename_path"); gpfs_set_winattrs_path_fn = dlsym(l, "gpfs_set_winattrs_path"); gpfs_set_winattrs_fn = dlsym(l, "gpfs_set_winattrs"); - gpfs_get_winattrs_path_fn = dlsym(l, "gpfs_get_winattrs_path"); 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"); @@ -166,17 +163,6 @@ int gpfswrap_set_winattrs(int fd, int flags, struct gpfs_winattr *attrs) return gpfs_set_winattrs_fn(fd, flags, attrs); } -int gpfswrap_get_winattrs_path(const char *pathname, - struct gpfs_winattr *attrs) -{ - if (gpfs_get_winattrs_path_fn == NULL) { - errno = ENOSYS; - return -1; - } - - return gpfs_get_winattrs_path_fn(pathname, attrs); -} - int gpfswrap_get_winattrs(int fd, struct gpfs_winattr *attrs) { if (gpfs_get_winattrs_fn == NULL) { diff --git a/lib/util/gpfswrap.h b/lib/util/gpfswrap.h index f9b96a3cf49..1e74496c060 100644 --- a/lib/util/gpfswrap.h +++ b/lib/util/gpfswrap.h @@ -38,8 +38,6 @@ int gpfswrap_set_winattrs_path(const char *pathname, int flags, struct gpfs_winattr *attrs); int gpfswrap_set_winattrs(int fd, int flags, struct gpfs_winattr *attrs); -int gpfswrap_get_winattrs_path(const char *pathname, - struct gpfs_winattr *attrs); 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); |