vfs_fruit: filter out AFP_AfpInfo streams with pending delete-on-close
commitf06e2514748672fb5847629056357427b91ef44b
authorRalph Boehme <slow@samba.org>
Thu, 7 Dec 2017 16:32:35 +0000 (7 17:32 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 25 Jan 2018 20:05:23 +0000 (25 21:05 +0100)
treecbfa35a57bea2643c402d18ec1804b2043cbef95
parentf59714752445bac37feb6ced394afe5a173f3c30
vfs_fruit: filter out AFP_AfpInfo streams with pending delete-on-close

This is in preperation of fixing the implementation of removing the
AFP_AfpInfo stream by zeroing the FinderInfo out.

We currently remove the stream blob from the underyling filesystem
backing store, but that results in certain operations to fail on any
still open file-handle.

The fix comes in the next commit which will convert to backing store
delete operation to a set delete-on-close on the stream.

This commit adds filtering on streams that have the delete-on-close
set. It is only needed for the fruit:metadata=stream case, as with
fruit:metadata=netatalk the filtering is already done in
fruit_streaminfo_meta_netatalk().

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13181

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 70d8f7c5d25f35b58620c2db8f57c7c0758267b3)
source3/modules/vfs_fruit.c