streams_depot: Simplify stream_dir()
authorVolker Lendecke <vl@samba.org>
Tue, 5 Apr 2022 13:32:08 +0000 (15:32 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 6 Apr 2022 17:09:59 +0000 (17:09 +0000)
commita27bbfc8a961968976649aa4db71b37a0db98b38
tree8add25c565600cb614491df1672b97f84542dbd0
parentd79194b2586c3435f11d650d8b4694b928dbf525
streams_depot: Simplify stream_dir()

The only place where we could have entered the mark_valid() code path
is via openat(). In openat(":stream") with O_CREAT fsp->base_fsp() is
fully opened from within create_file_unixpath(). Change
streams_depot_openat() to call the FSETXATTR from mark_file_valid()
directly. This means we don't need the expensive synthetic_pathref()
call from stream_dir() anymore.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Apr  6 17:09:59 UTC 2022 on sn-devel-184
source3/modules/vfs_streams_depot.c