File name and stat information. More...
#include <lib/fsm.h>
Data Fields | |
const char * | path |
const char * | lpath |
const char * | opath |
FD_t | cfd |
FD_t | rfd |
char * | rdbuf |
char * | rdb |
size_t | rdsize |
size_t | rdlen |
size_t | rdnb |
FD_t | wfd |
char * | wrbuf |
char * | wrb |
size_t | wrsize |
size_t | wrlen |
size_t | wrnb |
FSMI_t | iter |
int | ix |
struct hardLink_s * | links |
struct hardLink_s * | li |
unsigned int * | archiveSize |
const char ** | failedFile |
const char * | subdir |
char | subbuf [64] |
const char * | osuffix |
const char * | nsuffix |
const char * | suffix |
char | sufbuf [64] |
short * | dnlx |
char * | ldn |
int | ldnlen |
int | ldnalloc |
int | postpone |
int | diskchecked |
int | exists |
int | mkdirsdone |
int | astriplen |
int | rc |
int | commit |
int | repackaged |
cpioMapFlags | mapFlags |
int | fdigestalgo |
int | digestlen |
const char * | dirName |
const char * | baseName |
const char * | fdigest |
const unsigned char * | digest |
const char * | fcontext |
unsigned | fflags |
fileAction | action |
fileStage | goal |
fileStage | stage |
fileStage | nstage |
struct stat | sb |
struct stat | osb |
unsigned | blksize |
int(* | headerRead )(FSM_t fsm, struct stat *st) |
int(* | headerWrite )(FSM_t fsm, struct stat *st) |
int(* | trailerWrite )(FSM_t fsm) |
File name and stat information.
Definition at line 125 of file fsm.h.
File disposition.
Definition at line 202 of file fsm.h.
Referenced by fsmCommitLinks(), fsmMakeLinks(), fsmMapPath(), and fsmStage().
unsigned int* fsm_s::archiveSize |
int fsm_s::astriplen |
Length of buildroot prefix.
Definition at line 183 of file fsm.h.
Referenced by fsmMapPath(), fsmStage(), and writeLinkedFile().
const char* fsm_s::baseName |
File base name.
Definition at line 193 of file fsm.h.
Referenced by fsmFsPath(), fsmMapPath(), and writeFile().
unsigned fsm_s::blksize |
Archive block size.
Definition at line 209 of file fsm.h.
Referenced by fsmSetup(), fsmStage(), and tarTrailerWrite().
Payload file handle.
Definition at line 133 of file fsm.h.
Referenced by fsmSetup(), fsmStage(), and fsmTeardown().
int fsm_s::commit |
const unsigned char* fsm_s::digest |
Bin digest (usually MD5, NULL disables).
Definition at line 197 of file fsm.h.
Referenced by extractRegular(), and fsmMapAttrs().
int fsm_s::digestlen |
No. of bytes in binary digest (~= 16)
Definition at line 189 of file fsm.h.
Referenced by extractRegular(), and fsmMapAttrs().
const char* fsm_s::dirName |
File directory name.
Definition at line 191 of file fsm.h.
Referenced by fsmFsPath(), fsmMapPath(), and writeFile().
short* fsm_s::dnlx |
Last dirpath verified indexes.
Definition at line 174 of file fsm.h.
Referenced by freeFSM(), fsmMkdirs(), fsmRmdirs(), and fsmStage().
int fsm_s::exists |
const char** fsm_s::failedFile |
First file name that failed.
Definition at line 161 of file fsm.h.
Referenced by fsmMakeLinks(), fsmSetup(), fsmStage(), fsmTeardown(), and writeLinkedFile().
const char* fsm_s::fcontext |
File security context (NULL disables).
Definition at line 199 of file fsm.h.
Referenced by fsmMapFContext(), fsmMkdirs(), and fsmStage().
const char* fsm_s::fdigest |
Hex digest (usually MD5, NULL disables).
Definition at line 195 of file fsm.h.
Referenced by extractRegular(), and fsmMapAttrs().
Digest algorithm (~= PGPHASHALGO_MD5)
Definition at line 188 of file fsm.h.
Referenced by extractRegular(), and fsmMapAttrs().
unsigned fsm_s::fflags |
Package state machine goal.
Definition at line 203 of file fsm.h.
Referenced by fsmMapAttrs(), fsmSetup(), fsmStage(), and saveHardLink().
int(* fsm_s::headerRead)(FSM_t fsm, struct stat *st) |
Definition at line 210 of file fsm.h.
Referenced by fsmSetup(), and fsmStage().
int(* fsm_s::headerWrite)(FSM_t fsm, struct stat *st) |
Definition at line 211 of file fsm.h.
Referenced by fsmSetup(), fsmStage(), and writeLinkedFile().
File iterator.
Definition at line 152 of file fsm.h.
Referenced by freeFSM(), fsmGetFi(), fsmGetTs(), fsmSetup(), fsmStage(), and fsmTeardown().
int fsm_s::ix |
Current file iterator index.
Definition at line 153 of file fsm.h.
Referenced by fsmCommitLinks(), fsmMakeLinks(), fsmMapAttrs(), fsmMapFContext(), fsmMapPath(), fsmStage(), saveHardLink(), writeFile(), and writeLinkedFile().
char* fsm_s::ldn |
Last dirpath verified.
Definition at line 176 of file fsm.h.
Referenced by freeFSM(), fsmMkdirs(), fsmRmdirs(), and fsmStage().
int fsm_s::ldnalloc |
Last dirpath allocated length.
Definition at line 178 of file fsm.h.
Referenced by fsmMkdirs(), and fsmStage().
int fsm_s::ldnlen |
Last dirpath current length.
Definition at line 177 of file fsm.h.
Referenced by fsmMkdirs(), and fsmStage().
struct hardLink_s* fsm_s::li |
Current hard linked file(s).
Definition at line 157 of file fsm.h.
Referenced by freeFSM(), fsmCommitLinks(), fsmMakeLinks(), fsmStage(), saveHardLink(), and writeLinkedFile().
struct hardLink_s* fsm_s::links |
Pending hard linked file(s).
Definition at line 155 of file fsm.h.
Referenced by freeFSM(), fsmCommitLinks(), fsmStage(), and saveHardLink().
const char* fsm_s::lpath |
Current link name.
Definition at line 129 of file fsm.h.
Referenced by cpioHeaderRead(), cpioHeaderWrite(), fsmStage(), tarHeaderRead(), tarHeaderWrite(), writeFile(), and writeLinkedFile().
Bit(s) to control mapping.
Definition at line 187 of file fsm.h.
Referenced by fsmMapAttrs(), fsmMapPath(), fsmStage(), and writeFile().
const char* fsm_s::nsuffix |
New, created, file suffix.
Definition at line 169 of file fsm.h.
Referenced by fsmCommitLinks(), fsmMakeLinks(), fsmMapPath(), fsmStage(), saveHardLink(), and writeLinkedFile().
const char* fsm_s::opath |
Original file name.
Definition at line 131 of file fsm.h.
Referenced by fsmMakeLinks(), fsmStage(), and writeFile().
struct stat fsm_s::osb |
Original file stat(2) info.
Definition at line 207 of file fsm.h.
Referenced by fsmMkdirs(), fsmStage(), and writeFile().
const char* fsm_s::osuffix |
Old, preserved, file suffix.
Definition at line 167 of file fsm.h.
Referenced by fsmMapPath(), and fsmStage().
const char* fsm_s::path |
Current file name.
Definition at line 127 of file fsm.h.
Referenced by cpioHeaderRead(), cpioHeaderWrite(), freeFSM(), fsmCommitLinks(), fsmMakeLinks(), fsmMapFContext(), fsmMapPath(), fsmMkdirs(), fsmRmdirs(), fsmStage(), saveHardLink(), tarHeaderRead(), tarHeaderWrite(), tarHeaderWriteBlock(), writeFile(), and writeLinkedFile().
int fsm_s::postpone |
int fsm_s::rc |
External file stage return code.
Definition at line 184 of file fsm.h.
Referenced by fsmSetup(), fsmStage(), and fsmTeardown().
char* fsm_s::rdb |
char* fsm_s::rdbuf |
read: Buffer.
Definition at line 137 of file fsm.h.
Referenced by cpioHeaderWrite(), cpioTrailerWrite(), fsmMkdirs(), fsmRmdirs(), fsmStage(), tarHeaderWrite(), tarHeaderWriteName(), and writeFile().
size_t fsm_s::rdlen |
read: Number of bytes requested.
Definition at line 141 of file fsm.h.
Referenced by fsmStage(), and writeFile().
size_t fsm_s::rdnb |
read: Number of bytes returned.
Definition at line 142 of file fsm.h.
Referenced by cpioHeaderRead(), cpioHeaderWrite(), cpioTrailerWrite(), fsmStage(), tarHeaderRead(), tarHeaderReadName(), tarHeaderWriteBlock(), tarHeaderWriteName(), and writeFile().
size_t fsm_s::rdsize |
read: Buffer allocated size.
Definition at line 140 of file fsm.h.
Referenced by fsmStage(), and writeFile().
struct stat fsm_s::sb |
Current file stat(2) info.
Definition at line 206 of file fsm.h.
Referenced by extractRegular(), fsmCommitLinks(), fsmMapAttrs(), fsmMapFContext(), fsmMapPath(), fsmMkdirs(), fsmStage(), saveHardLink(), and writeFile().
char fsm_s::subbuf[64] |
const char* fsm_s::subdir |
Current file sub-directory.
Definition at line 163 of file fsm.h.
Referenced by fsmMapPath(), and fsmStage().
char fsm_s::sufbuf[64] |
Definition at line 172 of file fsm.h.
Referenced by fsmSetup(), and fsmStage().
const char* fsm_s::suffix |
Current file suffix.
Definition at line 171 of file fsm.h.
Referenced by fsmMapPath(), and fsmStage().
int(* fsm_s::trailerWrite)(FSM_t fsm) |
Definition at line 212 of file fsm.h.
Referenced by fsmSetup(), and fsmStage().
write: File handle.
Definition at line 143 of file fsm.h.
Referenced by extractRegular(), and fsmStage().
char* fsm_s::wrb |
char* fsm_s::wrbuf |
write: Buffer.
Definition at line 145 of file fsm.h.
Referenced by cpioHeaderRead(), fsmStage(), tarHeaderRead(), and tarHeaderReadName().
size_t fsm_s::wrlen |
write: Number of bytes requested.
Definition at line 149 of file fsm.h.
Referenced by cpioHeaderRead(), extractRegular(), fsmStage(), tarHeaderRead(), and tarHeaderReadName().
size_t fsm_s::wrnb |
write: Number of bytes returned.
Definition at line 150 of file fsm.h.
Referenced by cpioHeaderWrite(), extractRegular(), fsmStage(), tarHeaderWriteBlock(), tarHeaderWriteName(), and writeFile().
size_t fsm_s::wrsize |
write: Buffer allocated size.
Definition at line 148 of file fsm.h.
Referenced by cpioHeaderRead(), extractRegular(), and fsmStage().