Interface to the outside.
|#define ||FSVS_DEBUG_ENV "FSVS_DEBUGLEVEL"|
| ||If this variable has a numeric value other than 0, the debuglevel is set even before commandline parsing. |
|#define ||DIFF_ENV "FSVS_DIFF"|
| ||The diff program to use. |
|#define ||DEFAULT_WAA_PATH "/var/spool/fsvs"|
| ||The default WAA path. |
|#define ||DEFAULT_CONF_PATH "/etc/fsvs"|
| ||The default CONF path. |
|#define ||DEFAULT_CONFIGDIR_SUB "/auth"|
| ||The default config directory (for authentication data), relative to $FSVS_CONF. |
|#define ||CONFIGDIR_GROUP "groups"|
| ||The directory below $CONF/$WC and $CONF for the grouping definitions. |
|#define ||FSVS_EXP_CURR_ENTRY "FSVS_CURRENT_ENTRY"|
| ||The (relative) path of the current entry. |
|#define ||FSVS_EXP_WC_CONF "FSVS_WC_CONF"|
| ||The configuration directory for the current working copy. |
|#define ||FSVS_EXP_WC_ROOT "FSVS_WC_ROOT"|
| ||The current working copy root directory. |
|#define ||FSVS_EXP_TARGET_REVISION "FSVS_TARGET_REVISION"|
| ||The revision we're updating or reverting to. |
|#define ||CHOWN_FUNC chown|
|#define ||CHOWN_BOOL 0|
|#define ||UTIMES_FUNC utimes|
|#define ||UTIMES_BOOL 0|
Note that these are not
#ifdef - marked, as we'd like to use off-the-shelf binaries from newer distributions without modifications!
|#define ||CHROOTER_ROOT_ENV "FSVS_CHROOT_ROOT"|
| ||The file descriptor number where FSVS can find the "original", "normal" root directory. |
|#define ||CHROOTER_LIBS_ENV "FSVS_CHROOT_LIBS"|
| ||Which libraries should be preloaded? Space-separated list. |
|#define ||CHROOTER_CWD_ENV "FSVS_CHROOT_CWD"|
| ||The old working directory file descriptor. |
These should be written to a property for big files, so that they can be easily read before fetching the file.
We need the same values for fetching as were used on storing - else we cannot do some rsync-like update.
- Currently they are used only for checking whether a file has changed locally. Here they should be written into the md5s file.
|#define ||CS__APPROX_BLOCKSIZE_BITS (17)|
| ||How many bits must be zero in the CRC to define that location as a block border. |
|#define ||CS__MANBER_BITMASK ((1 << CS__APPROX_BLOCKSIZE_BITS)-1)|
| ||The bit mask for comparing. |
|#define ||CS__MANBER_MODULUS (-1)|
| ||The modulus. |
|#define ||CS__MANBER_PRIME (31)|
| ||The prime number used for generation of the hash. |
|#define ||CS__MANBER_BACKTRACK (2*1024)|
| ||The number of bytes for the block comparison. |
|#define ||CS__MIN_FILE_SIZE (256*1024)|
| ||The minimum filesize, at or above which files get tested in blocks. |
Interface to the outside.