From: Ralph Boehme Date: Wed, 3 Oct 2018 10:01:00 +0000 (+0200) Subject: vfs_fruit: add option "delete_empty_adfiles" X-Git-Tag: tdb-1.3.17~1090 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e00e61345ccd88022cd24e62ac29e2c56a8f6117;p=thirdparty%2Fsamba.git vfs_fruit: add option "delete_empty_adfiles" Bug: https://bugzilla.samba.org/show_bug.cgi?id=13642 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 4c731da4b23..5c872854ed7 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -143,6 +143,7 @@ struct fruit_config_data { bool time_machine; off_t time_machine_max_size; bool wipe_intentionally_left_blank_rfork; + bool delete_empty_adfiles; /* * Additional options, all enabled by default, @@ -2208,6 +2209,10 @@ static int init_fruit_config(vfs_handle_struct *handle) SNUM(handle->conn), FRUIT_PARAM_TYPE_NAME, "wipe_intentionally_left_blank_rfork", false); + config->delete_empty_adfiles = lp_parm_bool( + SNUM(handle->conn), FRUIT_PARAM_TYPE_NAME, + "delete_empty_adfiles", false); + SMB_VFS_HANDLE_SET_DATA(handle, config, NULL, struct fruit_config_data, return -1);