vfs_fruit: filter out AFP_AfpInfo streams with pending delete-on-close
commit70d8f7c5d25f35b58620c2db8f57c7c0758267b3
authorRalph Boehme <slow@samba.org>
Thu, 7 Dec 2017 16:32:35 +0000 (7 17:32 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 9 Jan 2018 11:53:32 +0000 (9 12:53 +0100)
tree1920149a0779ecb0b42fd90ca22a52dcb4690b21
parentc41e1ea9247611473d30184efd953c61955ead15
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>
source3/modules/vfs_fruit.c