]> 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)
committerKarolin Seeger <kseeger@samba.org>
Fri, 2 Nov 2018 09:30:10 +0000 (10:30 +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>
(cherry picked from commit e00e61345ccd88022cd24e62ac29e2c56a8f6117)

source3/modules/vfs_fruit.c

index e38d48bea028fffb11b21900d9cd95e36a448b2b..b4a14b387560f0794b12853e18bcdff6b70cdd2a 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);