Additional "standby clone" code

We'll break up the unwieldy "do_standby_clone()" function into discrete
unit for easier maintenance.
This commit is contained in:
Ian Barwick
2017-04-28 22:00:26 +09:00
parent 99e7bb0ea3
commit dc347f1484
14 changed files with 668 additions and 14 deletions

19
dirutil.h Normal file
View File

@@ -0,0 +1,19 @@
/*
* dirutil.h
* Copyright (c) 2ndQuadrant, 2010-2017
*
*/
#ifndef _DIRUTIL_H_
#define _DIRUTIL_H_
extern int mkdir_p(char *path, mode_t omode);
extern bool set_dir_permissions(char *path);
extern int check_dir(char *path);
extern bool create_dir(char *path);
extern bool is_pg_dir(char *path);
extern bool create_pg_dir(char *path, bool force);
extern bool create_witness_pg_dir(char *path, bool force);
#endif