From: Samuel Cabrero Date: Thu, 9 Oct 2025 10:30:17 +0000 (+0200) Subject: vfs:glusterfs: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e67b08191cd7f8ff10ba27826642da49f69332a0;p=thirdparty%2Fsamba.git vfs:glusterfs: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV 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 Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index 6fe12985d9c..9293f7ee996 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -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;