From 93111820133692b425c2a883f05a06b70c02a3f3 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Tue, 30 Sep 2025 10:32:36 +0200 Subject: [PATCH] vfs:ceph_new: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV flag Don't return ENOSYS if the flag is set. It will be ignored, does not make sense in a ceph filesystem. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15805 Signed-off-by: Samuel Cabrero Reviewed-by: Ralph Boehme --- source3/modules/vfs_ceph_new.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/modules/vfs_ceph_new.c b/source3/modules/vfs_ceph_new.c index 5dfdea583e9..2da722fcc80 100644 --- a/source3/modules/vfs_ceph_new.c +++ b/source3/modules/vfs_ceph_new.c @@ -2335,7 +2335,9 @@ static int vfs_ceph_openat(struct vfs_handle_struct *handle, int result = -ENOENT; START_PROFILE_X(SNUM(handle->conn), 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) + { result = -ENOSYS; goto err_out; } -- 2.47.3