From 9bb890a2af1fc72efa16fa6e4c1f123cee2f87bd Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 19 Mar 2021 13:55:26 -0700 Subject: [PATCH] s3: vxfs: Remove unused vxfs_listxattr_path(). Missed when SMB_VFS_LISTXATTR() was removed. Signed-off-by: Jeremy Allison Reviewed-by: David Mulder --- source3/modules/lib_vxfs.c | 17 ----------------- source3/modules/vfs_vxfs.h | 1 - 2 files changed, 18 deletions(-) diff --git a/source3/modules/lib_vxfs.c b/source3/modules/lib_vxfs.c index dcb5cb304e1..5df9b686a7d 100644 --- a/source3/modules/lib_vxfs.c +++ b/source3/modules/lib_vxfs.c @@ -189,23 +189,6 @@ int vxfs_listxattr_fd(int fd, char *list, size_t size) return len; } -int vxfs_listxattr_path(const char *path, char *list, size_t size) -{ - int ret, fd = -1; - - fd = open(path, O_RDONLY); - if (fd == -1) { - DEBUG(10, ("file not opened: vxfs_listxattr_path for %s\n", - path)); - return -1; - } - - ret = vxfs_listxattr_fd(fd, list, size); - close(fd); - - return ret; -} - int vxfs_setwxattr_fd(int fd) { int ret = 0; diff --git a/source3/modules/vfs_vxfs.h b/source3/modules/vfs_vxfs.h index 19755900d73..29109bf4789 100644 --- a/source3/modules/vfs_vxfs.h +++ b/source3/modules/vfs_vxfs.h @@ -28,7 +28,6 @@ int vxfs_getxattr_fd(int, const char *, void *, size_t); int vxfs_removexattr_path(const char *, const char *, bool); int vxfs_removexattr_fd(int, const char *); -int vxfs_listxattr_path(const char *, char *, size_t); int vxfs_listxattr_fd(int, char *, size_t); int vxfs_setwxattr_path(const char *, bool); -- 2.47.3