PostgreSQL Source Code git master
|
Go to the source code of this file.
Data Structures | |
struct | astreamer_verify |
Typedefs | |
typedef struct astreamer_verify | astreamer_verify |
Functions | |
static void | astreamer_verify_content (astreamer *streamer, astreamer_member *member, const char *data, int len, astreamer_archive_context context) |
static void | astreamer_verify_finalize (astreamer *streamer) |
static void | astreamer_verify_free (astreamer *streamer) |
static void | member_verify_header (astreamer *streamer, astreamer_member *member) |
static void | member_compute_checksum (astreamer *streamer, astreamer_member *member, const char *data, int len) |
static void | member_verify_checksum (astreamer *streamer) |
static void | member_copy_control_data (astreamer *streamer, astreamer_member *member, const char *data, int len) |
static void | member_verify_control_data (astreamer *streamer) |
static void | member_reset_info (astreamer *streamer) |
astreamer * | astreamer_verify_content_new (astreamer *next, verifier_context *context, char *archive_name, Oid tblspc_oid) |
Variables | |
static const astreamer_ops | astreamer_verify_ops |
typedef struct astreamer_verify astreamer_verify |
|
static |
Definition at line 90 of file astreamer_verify.c.
References Assert, ASTREAMER_ARCHIVE_TRAILER, ASTREAMER_MEMBER_CONTENTS, ASTREAMER_MEMBER_HEADER, ASTREAMER_MEMBER_TRAILER, ASTREAMER_UNKNOWN, data, len, member_compute_checksum(), member_copy_control_data(), member_reset_info(), member_verify_checksum(), member_verify_control_data(), member_verify_header(), pg_fatal, astreamer_verify::verify_checksum, and astreamer_verify::verify_control_data.
astreamer * astreamer_verify_content_new | ( | astreamer * | next, |
verifier_context * | context, | ||
char * | archive_name, | ||
Oid | tblspc_oid | ||
) |
Definition at line 66 of file astreamer_verify.c.
References astreamer_verify::archive_name, astreamer_verify_ops, astreamer_verify::base, astreamer::bbs_next, astreamer::bbs_ops, astreamer_verify::checksum_ctx, astreamer_verify::context, next, palloc0(), pg_malloc(), verifier_context::skip_checksums, and astreamer_verify::tblspc_oid.
Referenced by create_archive_verifier().
|
static |
Definition at line 137 of file astreamer_verify.c.
References Assert, and astreamer::bbs_next.
|
static |
Definition at line 146 of file astreamer_verify.c.
References astreamer_verify::checksum_ctx, and pfree().
|
static |
Definition at line 253 of file astreamer_verify.c.
References Assert, astreamer_verify::checksum_bytes, astreamer_verify::checksum_ctx, manifest_file::checksum_type, astreamer_verify::context, data, len, astreamer_verify::mfile, manifest_file::pathname, pg_checksum_update(), report_backup_error(), pg_checksum_context::type, and astreamer_verify::verify_checksum.
Referenced by astreamer_verify_content().
|
static |
Definition at line 333 of file astreamer_verify.c.
References Assert, astreamer_verify::control_file, astreamer_verify::control_file_bytes, data, len, Min, remaining, and astreamer_verify::verify_control_data.
Referenced by astreamer_verify_content().
|
static |
Definition at line 422 of file astreamer_verify.c.
References astreamer_verify::checksum_bytes, astreamer_verify::control_file_bytes, astreamer_verify::mfile, astreamer_verify::verify_checksum, and astreamer_verify::verify_control_data.
Referenced by astreamer_verify_content().
|
static |
Definition at line 284 of file astreamer_verify.c.
References astreamer_verify::archive_name, Assert, astreamer_verify::checksum_bytes, astreamer_verify::checksum_ctx, manifest_file::checksum_length, manifest_file::checksum_payload, astreamer_verify::context, astreamer_verify::mfile, manifest_file::pathname, pg_checksum_final(), PG_CHECKSUM_MAX_LENGTH, report_backup_error(), manifest_file::size, and astreamer_verify::verify_checksum.
Referenced by astreamer_verify_content().
|
static |
Definition at line 366 of file astreamer_verify.c.
References astreamer_verify::archive_name, Assert, COMP_CRC32C, astreamer_verify::context, astreamer_verify::control_file, astreamer_verify::control_file_bytes, ControlFileData::crc, crc, EQ_CRC32C, FIN_CRC32C, INIT_CRC32C, manifest, verifier_context::manifest, astreamer_verify::mfile, manifest_file::pathname, PG_CONTROL_FILE_SIZE, PG_CONTROL_VERSION, ControlFileData::pg_control_version, report_fatal_error(), ControlFileData::system_identifier, and astreamer_verify::verify_control_data.
Referenced by astreamer_verify_content().
|
static |
Definition at line 160 of file astreamer_verify.c.
References astreamer_verify::archive_name, manifest_file::bad, canonicalize_path(), astreamer_verify::checksum_ctx, manifest_file::checksum_type, astreamer_verify::context, manifest_data::files, astreamer_member::is_directory, astreamer_member::is_link, verifier_context::manifest, manifest_file::matched, MAXPGPATH, astreamer_verify::mfile, OidIsValid, manifest_file::pathname, astreamer_member::pathname, pg_checksum_init(), report_backup_error(), should_ignore_relpath(), should_verify_checksum, manifest_file::size, astreamer_member::size, verifier_context::skip_checksums, snprintf, astreamer_verify::tblspc_oid, astreamer_verify::verify_checksum, astreamer_verify::verify_control_data, and manifest_data::version.
Referenced by astreamer_verify_content().
|
static |
Definition at line 56 of file astreamer_verify.c.
Referenced by astreamer_verify_content_new().