comp.c File Reference
#include "syshead.h"
#include "comp.h"
#include "error.h"
Include dependency graph for comp.c:

Go to the source code of this file.


bool check_compression_settings_valid (struct compress_options *info, int msglevel)
 Checks if the compression settings are valid. More...

Function Documentation

◆ check_compression_settings_valid()

bool check_compression_settings_valid ( struct compress_options info,
int  msglevel 

Checks if the compression settings are valid.

Takes into account the flags of allow-compression and also the whether algorithms are compiled in

Definition at line 163 of file comp.c.

References compress_options::alg, COMP_ALG_LZ4, COMP_ALG_LZO, COMP_ALG_UNDEF, COMP_ALGV2_LZ4, COMP_ALGV2_UNCOMPRESSED, COMP_F_ALLOW_NOCOMP_ONLY, COMP_F_ALLOW_STUB_ONLY, comp_non_stub_enabled(), compress_options::flags, and msg.

Referenced by do_deferred_options(), multi_connection_established(), and options_postprocess_mutate().