#include <dirent.h>
Go to the source code of this file.
Definition at line 64 of file file_utils.h.
Definition at line 63 of file file_utils.h.
Enumerator | |
---|---|
DATA_DIR_SYNC_METHOD_FSYNC | |
DATA_DIR_SYNC_METHOD_SYNCFS |
Definition at line 27 of file file_utils.h.
Enumerator | |
---|---|
PGFILETYPE_ERROR | |
PGFILETYPE_UNKNOWN | |
PGFILETYPE_REG | |
PGFILETYPE_DIR | |
PGFILETYPE_LNK |
Definition at line 18 of file file_utils.h.
Definition at line 614 of file file_utils.c.
References Assert(), and source.
Referenced by mdreadv(), mdwritev(), and pg_pwritev_with_retry().
Definition at line 547 of file file_utils.c.
References dirent::d_type, DT_DIR, DT_LNK, DT_REG, ereport, errcode_for_file_access(), errmsg(), lstat, pg_log_generic(), PG_LOG_PRIMARY, PGFILETYPE_DIR, PGFILETYPE_ERROR, PGFILETYPE_LNK, PGFILETYPE_REG, PGFILETYPE_UNKNOWN, S_ISDIR, S_ISLNK, S_ISREG, stat::st_mode, and stat.
Referenced by CheckPointLogicalRewriteHeap(), CheckPointSnapBuild(), CheckTablespaceDirectory(), copydir(), do_pg_backup_start(), GetConfFilesInDir(), pg_tzenumerate_next(), process_directory_recursively(), RemovePgTempFilesInDir(), RemoveXlogFile(), rmtree(), scan_for_existing_tablespaces(), StartupReplicationSlots(), swap_catalog_files(), and walkdir().
Definition at line 709 of file file_utils.c.
References Assert(), fd(), PG_IOV_MAX, pg_pwritev_with_retry(), and unconstify.
Referenced by dir_open_for_write(), FileZero(), and XLogFileInitInternal().
Definition at line 659 of file file_utils.c.
References compute_remaining_iovec(), fd(), Min, PG_IOV_MAX, and pg_pwritev().
Referenced by pg_pwrite_zeros().