]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: add option "delete_empty_adfiles"
authorRalph Boehme <slow@samba.org>
Wed, 3 Oct 2018 10:01:00 +0000 (12:01 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 31 Oct 2018 20:27:17 +0000 (21:27 +0100)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13642

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c

index 4c731da4b23c857a4a262ef072e34d7527560de9..5c872854ed7214e8f787dd074754eab8b3f44234 100644 (file)
@@ -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);