]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_fruit: filter out AFP_AfpInfo streams with pending delete-on-close
authorRalph Boehme <slow@samba.org>
Thu, 7 Dec 2017 16:32:35 +0000 (17:32 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 25 Jan 2018 14:06:21 +0000 (15:06 +0100)
commit9e47e9e28c47924374bff7825c0d554623a6616e
tree726daa154016b4a76e7005b47bd568471d08a5a9
parentc1e0396bcb1881967c5be82eb3e8101a81ed6829
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