You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-01 00:25:06 +02:00
Full abstraction of storage driver interface.
The external storage interfaces (Storage, StorageFileRead, etc.) have been stable for a while, but internally they were calling the posix driver functions directly. Create driver interfaces for storage, fileRead, and fileWrite and remove all references to the posix driver outside storage/driver/posix (with the exception of a direct call to pathRemove() in Perl LibC). Posix is still the only available driver so more adjustment may be needed, but this should represent the bulk of the changes.
This commit is contained in:
@ -200,6 +200,11 @@ size_t strzToLog(const char *string, char *buffer, size_t bufferSize);
|
||||
#define FUNCTION_DEBUG_VOIDP_FORMAT(value, buffer, bufferSize) \
|
||||
ptrToLog(value, "void *", buffer, bufferSize)
|
||||
|
||||
#define FUNCTION_DEBUG_CONST_VOIDP_TYPE \
|
||||
const void *
|
||||
#define FUNCTION_DEBUG_CONST_VOIDP_FORMAT(value, buffer, bufferSize) \
|
||||
FUNCTION_DEBUG_VOIDP_FORMAT(value, buffer, bufferSize)
|
||||
|
||||
#define FUNCTION_DEBUG_VOIDPP_TYPE \
|
||||
void **
|
||||
#define FUNCTION_DEBUG_VOIDPP_FORMAT(value, buffer, bufferSize) \
|
||||
|
Reference in New Issue
Block a user