From e67b08191cd7f8ff10ba27826642da49f69332a0 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Thu, 9 Oct 2025 12:30:17 +0200 Subject: [PATCH] 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 --- source3/modules/vfs_glusterfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.47.3