]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs:ceph: Allow VFS_OPEN_HOW_RESOLVE_NO_XDEV flag
authorSamuel Cabrero <scabrero@suse.de>
Fri, 2 May 2025 10:11:01 +0000 (12:11 +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 virtual 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.c

index dc10a516ff5bc8a0c4f3cd0e1fda2d77c878ab4a..04d7433c1e010b4c599e4e03ad1c6f213a3703a7 100644 (file)
@@ -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;
        }