Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
ZCK_HASH_CHUNK_TYPE, /* Set chunk hash type using zck_hash */
ZCK_VAL_HEADER_HASH_TYPE, /* Set what the header hash type *should* be */
ZCK_VAL_HEADER_LENGTH, /* Set what the header length *should* be */
+ ZCK_MANUAL_CHUNK, /* Disable auto-chunking */
ZCK_COMP_TYPE = 100, /* Set compression type using zck_comp */
ZCK_ZSTD_COMP_LEVEL = 1000 /* Set zstd compression level */
} zck_ioption;
return False;
}
zck->prep_hdr_size = value;
+ } else if(option == ZCK_MANUAL_CHUNK) {
+ VALIDATE_WRITE(zck);
+ if(value != 0) {
+ zck_log(ZCK_LOG_DEBUG, "Disabling automatic chunking\n");
+ zck->manual_chunk = 1;
+ } else {
+ zck_log(ZCK_LOG_DEBUG, "Enabling automatic chunking\n");
+ zck->manual_chunk = 0;
+ }
/* Hash options */
} else if(option < 100) {
int buzhash_width;
int buzhash_match_bits;
+ int manual_chunk;
} zckCtx;
int get_tmp_fd()