PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include <time.h>
#include "common/logging.h"
#include "fe_utils/astreamer.h"
#include "pgtar.h"
Go to the source code of this file.
Data Structures | |
struct | astreamer_tar_parser |
struct | astreamer_tar_archiver |
Typedefs | |
typedef struct astreamer_tar_parser | astreamer_tar_parser |
typedef struct astreamer_tar_archiver | astreamer_tar_archiver |
Variables | |
static const astreamer_ops | astreamer_tar_parser_ops |
static const astreamer_ops | astreamer_tar_archiver_ops |
static const astreamer_ops | astreamer_tar_terminator_ops |
typedef struct astreamer_tar_archiver astreamer_tar_archiver |
typedef struct astreamer_tar_parser astreamer_tar_parser |
|
static |
Definition at line 390 of file astreamer_tar.c.
References Assert, ASTREAMER_ARCHIVE_TRAILER, astreamer_content(), ASTREAMER_MEMBER_HEADER, ASTREAMER_MEMBER_TRAILER, ASTREAMER_UNKNOWN, astreamer::bbs_next, context, data, astreamer_member::gid, len, astreamer_member::mode, astreamer_member::pathname, astreamer_tar_archiver::rearchive_member, astreamer_member::size, TAR_BLOCK_SIZE, tarCreateHeader(), tarPaddingBytesRequired(), and astreamer_member::uid.
|
static |
Definition at line 442 of file astreamer_tar.c.
References astreamer_finalize(), and astreamer::bbs_next.
|
static |
Definition at line 451 of file astreamer_tar.c.
References astreamer_free(), astreamer::bbs_next, and pfree().
Definition at line 356 of file astreamer_tar.c.
References astreamer_tar_archiver_ops, astreamer_tar_archiver::base, astreamer::bbs_next, astreamer::bbs_ops, next, and palloc0().
Referenced by CreateBackupStreamer().
|
static |
Definition at line 261 of file astreamer_tar.c.
References Assert, astreamer_content(), ASTREAMER_MEMBER_HEADER, astreamer_tar_parser::base, astreamer::bbs_buffer, astreamer::bbs_next, StringInfoData::data, astreamer_member::gid, i, astreamer_member::is_directory, astreamer_member::is_link, StringInfoData::len, astreamer_member::linktarget, MAXPGPATH, astreamer_tar_parser::member, astreamer_member::mode, astreamer_tar_parser::pad_bytes_expected, astreamer_member::pathname, pg_fatal, read_tar_number(), astreamer_member::size, strlcpy(), TAR_BLOCK_SIZE, TAR_FILETYPE_DIRECTORY, TAR_FILETYPE_SYMLINK, TAR_OFFSET_GID, TAR_OFFSET_LINKNAME, TAR_OFFSET_MODE, TAR_OFFSET_NAME, TAR_OFFSET_SIZE, TAR_OFFSET_TYPEFLAG, TAR_OFFSET_UID, tarPaddingBytesRequired(), and astreamer_member::uid.
Referenced by astreamer_tar_parser_content().
|
static |
Definition at line 111 of file astreamer_tar.c.
References Assert, ASTREAMER_ARCHIVE_TRAILER, astreamer_buffer_bytes(), astreamer_buffer_until(), astreamer_content(), ASTREAMER_MEMBER_CONTENTS, ASTREAMER_MEMBER_HEADER, ASTREAMER_MEMBER_TRAILER, astreamer_tar_header(), ASTREAMER_UNKNOWN, astreamer_tar_parser::base, astreamer::bbs_buffer, astreamer::bbs_next, context, data, astreamer_tar_parser::file_bytes_sent, StringInfoData::len, len, astreamer_tar_parser::member, Min, astreamer_tar_parser::next_context, astreamer_tar_parser::pad_bytes_expected, pg_fatal, astreamer_member::size, and TAR_BLOCK_SIZE.
|
static |
Definition at line 319 of file astreamer_tar.c.
References ASTREAMER_ARCHIVE_TRAILER, astreamer_content(), astreamer_finalize(), ASTREAMER_MEMBER_HEADER, astreamer_tar_parser::base, astreamer::bbs_buffer, astreamer::bbs_next, StringInfoData::data, StringInfoData::len, astreamer_tar_parser::next_context, and pg_fatal.
|
static |
Definition at line 341 of file astreamer_tar.c.
References astreamer_free(), astreamer::bbs_buffer, astreamer::bbs_next, StringInfoData::data, and pfree().
Definition at line 93 of file astreamer_tar.c.
References ASTREAMER_MEMBER_HEADER, astreamer_tar_parser_ops, astreamer_tar_parser::base, astreamer::bbs_buffer, astreamer::bbs_next, astreamer::bbs_ops, initStringInfo(), next, astreamer_tar_parser::next_context, and palloc0().
Referenced by create_archive_verifier(), and CreateBackupStreamer().
|
static |
Definition at line 478 of file astreamer_tar.c.
References Assert, astreamer_content(), ASTREAMER_UNKNOWN, astreamer::bbs_next, context, data, and len.
|
static |
Definition at line 496 of file astreamer_tar.c.
References astreamer_content(), astreamer_finalize(), ASTREAMER_UNKNOWN, astreamer::bbs_next, and TAR_BLOCK_SIZE.
|
static |
Definition at line 510 of file astreamer_tar.c.
References astreamer_free(), astreamer::bbs_next, and pfree().
Definition at line 462 of file astreamer_tar.c.
References astreamer_tar_terminator_ops, astreamer::bbs_next, astreamer::bbs_ops, next, and palloc0().
Referenced by CreateBackupStreamer().
|
static |
Definition at line 66 of file astreamer_tar.c.
Referenced by astreamer_tar_archiver_new().
|
static |
Definition at line 53 of file astreamer_tar.c.
Referenced by astreamer_tar_parser_new().
|
static |
Definition at line 79 of file astreamer_tar.c.
Referenced by astreamer_tar_terminator_new().