]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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)
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 2dbb2d287399e9c829a4fd4908a6dfba9fdfd7e8)

source3/modules/vfs_fruit.c

index 44fa50df249bca02a92c0f45265603e2ee080434..c9028a93d6247f32ad31e3735bd09f9d6dc142d6 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);