vfs_fruit: refactor fruit_ftruncate() and fix stream case
authorRalph Boehme <slow@samba.org>
Fri, 2 Dec 2016 15:20:46 +0000 (16:20 +0100)
committerUri Simchoni <uri@samba.org>
Wed, 1 Mar 2017 23:32:21 +0000 (00:32 +0100)
commita5b060fcd2c1d26bd0abfceffcd7b2c43056c78e
treec9bf4bfe0b71277c9a1caeeec8f774efb53ebb46
parentb0b785b0d4b64810f6ee58b015929641246479d1
vfs_fruit: refactor fruit_ftruncate() and fix stream case

The fruit:metadata=stream case wasn't handled previosly, this is now
done in fruit_ftruncate_rsrc_stream(). The rest is just refactoring and
no change in behaviour.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12427

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source3/modules/vfs_fruit.c