]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: vxfs: Remove unused vxfs_setxattr_path().
authorJeremy Allison <jra@samba.org>
Fri, 19 Mar 2021 20:59:58 +0000 (13:59 -0700)
committerDavid Mulder <dmulder@samba.org>
Mon, 22 Mar 2021 22:36:05 +0000 (22:36 +0000)
Missed when SMB_VFS_SETXATTR() was removed.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@samba.org>
Autobuild-User(master): David Mulder <dmulder@samba.org>
Autobuild-Date(master): Mon Mar 22 22:36:05 UTC 2021 on sn-devel-184

source3/modules/lib_vxfs.c
source3/modules/vfs_vxfs.h

index 5df9b686a7d145d43e688cd10206b135a6bdbce7..13b2e612a27a53524a211510131309ab7a69afb3 100644 (file)
@@ -61,30 +61,6 @@ int vxfs_setxattr_fd(int fd, const char *name, const void *value,
        return ret;
 }
 
-int vxfs_setxattr_path(const char *path, const char *name, const void *value,
-                      size_t len, int flags, bool is_dir)
-{
-       int ret, fd = -1;
-
-       if (is_dir) {
-               fd = open(path, O_RDONLY|O_DIRECTORY);
-       } else {
-               fd = open(path, O_WRONLY);
-       }
-
-       if (fd == -1) {
-               DEBUG(10, ("error in vxfs_setxattr_path: %s\n",
-                     strerror(errno)));
-               return -1;
-       }
-
-       ret = vxfs_setxattr_fd(fd, name, value, len, flags);
-
-       close(fd);
-
-       return ret;
-}
-
 int vxfs_getxattr_fd(int fd, const char *name, void *value, size_t len)
 {
        int ret;
index 29109bf4789f011f9512519a2370449bf2e7dd62..e081baa0fc74c964c4ff4e7a3191f002d247e4f9 100644 (file)
@@ -18,8 +18,6 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-int vxfs_setxattr_path(const char *, const char *, const void *, size_t, int,
-                      bool);
 int vxfs_setxattr_fd(int, const char *, const void *, size_t, int);
 
 int vxfs_getxattr_path(const char *, const char *, void *, size_t);