vfs_fruit: add option "wipe_intentionally_left_blank_rfork"
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 a3dabcd31c1edea0462cc758af31bf73dc849ea4..06b534d31b2b888552b705d85cc56d7c95c074d2 100644 (file)
@@ -142,6 +142,7 @@ struct fruit_config_data {
        const char *model;
        bool time_machine;
        off_t time_machine_max_size;
+       bool wipe_intentionally_left_blank_rfork;
 
        /*
         * Additional options, all enabled by default,
@@ -2094,6 +2095,10 @@ static int init_fruit_config(vfs_handle_struct *handle)
                config->time_machine_max_size = conv_str_size(tm_size_str);
        }
 
+       config->wipe_intentionally_left_blank_rfork = lp_parm_bool(
+               SNUM(handle->conn), FRUIT_PARAM_TYPE_NAME,
+               "wipe_intentionally_left_blank_rfork", false);
+
        SMB_VFS_HANDLE_SET_DATA(handle, config,
                                NULL, struct fruit_config_data,
                                return -1);