From: Samuel Cabrero Date: Tue, 30 Sep 2025 08:32:36 +0000 (+0200) Subject: vfs:ceph_new: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV flag X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93111820133692b425c2a883f05a06b70c02a3f3;p=thirdparty%2Fsamba.git 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 --- 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; }