]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs:glusterfs: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV
authorSamuel Cabrero <scabrero@samba.org>
Thu, 9 Oct 2025 10:30:17 +0000 (12:30 +0200)
committerSamuel Cabrero <scabrero@samba.org>
Tue, 18 Nov 2025 08:03:32 +0000 (08:03 +0000)
Don't return ENOSYS if the flag is set. It will be ignored as does not make
sense in this module.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15805

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_glusterfs.c

index 6fe12985d9c3fbc11187ed6070b72aa0907642ba..9293f7ee996f8babef919bde97bbcc82b7095981 100644 (file)
@@ -731,7 +731,9 @@ static int vfs_gluster_openat(struct vfs_handle_struct *handle,
 
        START_PROFILE(syscall_openat);
 
-       if ((how->resolve & ~VFS_OPEN_HOW_WITH_BACKUP_INTENT) != 0) {
+       if ((how->resolve & ~(VFS_OPEN_HOW_WITH_BACKUP_INTENT |
+                             VFS_OPEN_HOW_RESOLVE_NO_XDEV)) != 0)
+       {
                END_PROFILE(syscall_openat);
                errno = ENOSYS;
                return -1;