mdssvc: avoid direct filesystem access, use the VFS
authorRalph Boehme <slow@samba.org>
Mon, 10 May 2021 10:34:32 +0000 (12:34 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Jul 2021 12:55:43 +0000 (12:55 +0000)
commit60714069b2c8550de7527336713f8e8905c5869b
treeef421fda1c1bb344a6abfa89d058e96805acc66e
parent1911547725601a728617e0677486a78ed99e4169
mdssvc: avoid direct filesystem access, use the VFS

This ensures mdssvc uses the same FileIDs as the fileserver as well as Spotlight
can be used working on a virtual filesystem like GlusterFS.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14740
RN: Spotlight RPC service doesn't work with vfs_glusterfs

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Jun 16 05:59:13 UTC 2021 on sn-devel-184

(backported from commit 620b99144359f45aa69c13731db8d793cfbba197)
[slow@samba.org: smbd_check_access_rights_fsp() doesn't take dirfsp arg]
source3/rpc_server/mdssvc/mdssvc.c