/***********************************************************************************************************************************
|
Verify File
|
***********************************************************************************************************************************/
|
#ifndef COMMAND_VERIFY_FILE_H
|
#define COMMAND_VERIFY_FILE_H
|
|
#include "common/compress/helper.h"
|
#include "common/format/cipherSpecMap.h"
|
|
/***********************************************************************************************************************************
|
File result
|
***********************************************************************************************************************************/
|
typedef enum
|
{
|
verifyOk, // Default result - file OK
|
verifyFileMissing,
|
verifyChecksumMismatch,
|
verifySizeInvalid,
|
verifyOtherError,
|
} VerifyResult;
|
|
/***********************************************************************************************************************************
|
Functions
|
***********************************************************************************************************************************/
|
// Verify a file in the pgBackRest repository
|
FN_EXTERN VerifyResult verifyFile(
|
const String *filePathName, uint64_t offset, const Variant *limit, CompressType compressType, const Buffer *fileChecksum,
|
uint64_t fileSize, const CipherSpecMap *cipherSpecMap, bool formatHeader);
|
|
#endif
|