]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs:ceph_new: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV flag
authorSamuel Cabrero <scabrero@samba.org>
Tue, 30 Sep 2025 08:32:36 +0000 (10:32 +0200)
committerSamuel Cabrero <scabrero@samba.org>
Tue, 18 Nov 2025 08:03:32 +0000 (08:03 +0000)
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 <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_ceph_new.c

index 5dfdea583e95aabb44e45bc42dd2f0f15d38c317..2da722fcc80fa2e1c8d48bbe14aab01c14fd97ae 100644 (file)
@@ -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;
        }