From: Samuel Cabrero Date: Fri, 2 May 2025 10:11:01 +0000 (+0200) Subject: vfs:ceph: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV flag X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=458fd85d5aa2b3c41a0656b47d8c770c7f6c9957;p=thirdparty%2Fsamba.git vfs:ceph: 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 virtual 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.c b/source3/modules/vfs_ceph.c index dc10a516ff5..04d7433c1e0 100644 --- a/source3/modules/vfs_ceph.c +++ b/source3/modules/vfs_ceph.c @@ -472,7 +472,9 @@ static int cephwrap_openat(struct vfs_handle_struct *handle, int result = -ENOENT; int dirfd = -1; - 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) + { errno = ENOSYS; return -1; }