rpm  5.4.10
Data Fields
iosm_s Struct Reference

File name and stat information. More...

#include <rpmio/iosm.h>

Collaboration diagram for iosm_s:
Collaboration graph
[legend]

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
 
IOSMI_t iter
 
int ix
 
struct hardLink_slinks
 
struct hardLink_sli
 
unsigned int * archiveSize
 
const char ** failedFile
 
const char * subdir
 
char subbuf [64]
 
const char * osuffix
 
const char * nsuffix
 
const char * suffix
 
char sufbuf [64]
 
unsigned short * dnlx
 
char * ldn
 
size_t ldnlen
 
size_t ldnalloc
 
int postpone
 
int diskchecked
 
int exists
 
int mkdirsdone
 
size_t astriplen
 
int rc
 
int commit
 
int repackaged
 
int strict_erasures
 
int multithreaded
 
int adding
 
int debug
 
int nofdigests
 
int nofcontexts
 
iosmMapFlags mapFlags
 
rpmuint32_t fdigestalgo
 
rpmuint32_t digestlen
 
const char * dirName
 
const char * baseName
 
const char * fdigest
 
const unsigned char * digest
 
const char * fcontext
 
rpmuint32_t fflags
 
iosmFileAction action
 
iosmFileStage goal
 
iosmFileStage stage
 
iosmFileStage nstage
 
struct stat sb
 
struct stat osb
 
unsigned blksize
 
int(* headerRead )(void *_iosm, struct stat *st)
 
int(* headerWrite )(void *_iosm, struct stat *st)
 
int(* trailerWrite )(void *_iosm)
 
char * lmtab
 
size_t lmtablen
 
size_t lmtaboff
 
struct rpmop_s op_digest
 

Detailed Description

File name and stat information.

Definition at line 218 of file iosm.h.

Field Documentation

§ action

iosmFileAction iosm_s::action

File disposition.

Definition at line 301 of file iosm.h.

Referenced by fsmCommitLinks(), fsmMakeLinks(), fsmMapPath(), fsmStage(), iosmCommitLinks(), iosmMakeLinks(), iosmMapPath(), and iosmStage().

§ adding

int iosm_s::adding

Is the rpmte element type TR_ADDED?

Definition at line 282 of file iosm.h.

Referenced by fsmMapPath(), fsmSetup(), iosmMapPath(), and iosmSetup().

§ archiveSize

unsigned int* iosm_s::archiveSize

Pointer to archive size.

Definition at line 252 of file iosm.h.

Referenced by fsmSetup(), and iosmSetup().

§ astriplen

size_t iosm_s::astriplen

Length of buildroot prefix.

Definition at line 276 of file iosm.h.

Referenced by fsmMapPath(), fsmStage(), iosmMapPath(), iosmStage(), and writeLinkedFile().

§ baseName

const char* iosm_s::baseName

File base name.

Definition at line 292 of file iosm.h.

Referenced by fsmFsPath(), fsmMapPath(), iosmFsPath(), iosmMapPath(), and writeFile().

§ blksize

unsigned iosm_s::blksize

Archive block size.

Definition at line 308 of file iosm.h.

Referenced by fsmSetup(), iosmSetup(), iosmStage(), and tarTrailerWrite().

§ cfd

FD_t iosm_s::cfd

Payload file handle.

Definition at line 226 of file iosm.h.

Referenced by arHeaderRead(), arHeaderWrite(), fsmSetup(), fsmStage(), fsmTeardown(), iosmSetup(), iosmStage(), and iosmTeardown().

§ commit

int iosm_s::commit

Commit synchronously?

Definition at line 278 of file iosm.h.

Referenced by fsmSetup(), fsmStage(), iosmSetup(), and iosmStage().

§ debug

int iosm_s::debug

Print detailed operations?

Definition at line 283 of file iosm.h.

Referenced by fsmSetup(), fsmStage(), fsmTeardown(), iosmSetup(), iosmStage(), and iosmTeardown().

§ digest

const unsigned char* iosm_s::digest

Bin digest (usually MD5, NULL disables).

Definition at line 296 of file iosm.h.

Referenced by extractRegular(), fsmMapAttrs(), and iosmMapAttrs().

§ digestlen

rpmuint32_t iosm_s::digestlen

No. of bytes in binary digest (~= 16)

Definition at line 288 of file iosm.h.

Referenced by extractRegular(), fsmMapAttrs(), and iosmMapAttrs().

§ dirName

const char* iosm_s::dirName

File directory name.

Definition at line 290 of file iosm.h.

Referenced by fsmFsPath(), fsmMapPath(), iosmFsPath(), iosmMapPath(), and writeFile().

§ diskchecked

int iosm_s::diskchecked

Has stat(2) been performed?

Definition at line 273 of file iosm.h.

Referenced by fsmStage(), and iosmStage().

§ dnlx

unsigned short* iosm_s::dnlx

Last dirpath verified indexes.

Definition at line 267 of file iosm.h.

Referenced by freeFSM(), freeIOSM(), fsmMkdirs(), fsmRmdirs(), fsmStage(), iosmMkdirs(), iosmRmdirs(), and iosmStage().

§ exists

int iosm_s::exists

Does current file exist on disk?

Definition at line 274 of file iosm.h.

Referenced by fsmMkdirs(), fsmStage(), iosmMkdirs(), and iosmStage().

§ failedFile

const char** iosm_s::failedFile

First file name that failed.

Definition at line 254 of file iosm.h.

Referenced by fsmMakeLinks(), fsmSetup(), fsmStage(), fsmTeardown(), iosmMakeLinks(), iosmSetup(), iosmStage(), iosmTeardown(), and writeLinkedFile().

§ fcontext

const char* iosm_s::fcontext

File security context (NULL disables).

Definition at line 298 of file iosm.h.

Referenced by fsmMapFContext(), fsmMkdirs(), fsmStage(), iosmMapFContext(), iosmMkdirs(), and iosmStage().

§ fdigest

const char* iosm_s::fdigest

Hex digest (usually MD5, NULL disables).

Definition at line 294 of file iosm.h.

Referenced by extractRegular(), fsmMapAttrs(), and iosmMapAttrs().

§ fdigestalgo

rpmuint32_t iosm_s::fdigestalgo

Digest algorithm (~= PGPHASHALGO_MD5)

Definition at line 287 of file iosm.h.

Referenced by extractRegular(), fsmMapAttrs(), and iosmMapAttrs().

§ fflags

rpmuint32_t iosm_s::fflags

File flags.

Definition at line 300 of file iosm.h.

Referenced by fsmMapPath(), fsmStage(), iosmMapPath(), and iosmStage().

§ goal

iosmFileStage iosm_s::goal

Package state machine goal.

Definition at line 302 of file iosm.h.

Referenced by fsmMapAttrs(), fsmSetup(), fsmStage(), iosmMapAttrs(), iosmSetup(), iosmStage(), and saveHardLink().

§ headerRead

int(* iosm_s::headerRead) (void *_iosm, struct stat *st)

Definition at line 309 of file iosm.h.

Referenced by fsmSetup(), iosmSetup(), and iosmStage().

§ headerWrite

int(* iosm_s::headerWrite) (void *_iosm, struct stat *st)

Definition at line 311 of file iosm.h.

Referenced by fsmSetup(), iosmSetup(), iosmStage(), and writeLinkedFile().

§ iter

IOSMI_t iosm_s::iter

File iterator.

Definition at line 245 of file iosm.h.

Referenced by freeFSM(), freeIOSM(), fsmGetFi(), fsmGetTs(), fsmSetup(), fsmStage(), fsmTeardown(), iosmGetFi(), iosmSetup(), iosmStage(), and iosmTeardown().

§ ix

int iosm_s::ix

§ ldn

char* iosm_s::ldn

Last dirpath verified.

Definition at line 269 of file iosm.h.

Referenced by freeFSM(), freeIOSM(), fsmMkdirs(), fsmRmdirs(), fsmStage(), iosmMkdirs(), iosmRmdirs(), and iosmStage().

§ ldnalloc

size_t iosm_s::ldnalloc

Last dirpath allocated length.

Definition at line 271 of file iosm.h.

Referenced by fsmMkdirs(), fsmStage(), iosmMkdirs(), and iosmStage().

§ ldnlen

size_t iosm_s::ldnlen

Last dirpath current length.

Definition at line 270 of file iosm.h.

Referenced by fsmMkdirs(), fsmStage(), iosmMkdirs(), and iosmStage().

§ li

struct hardLink_s* iosm_s::li

Current hard linked file(s).

Definition at line 250 of file iosm.h.

Referenced by freeFSM(), freeIOSM(), fsmCommitLinks(), fsmMakeLinks(), fsmStage(), iosmCommitLinks(), iosmMakeLinks(), iosmStage(), saveHardLink(), and writeLinkedFile().

§ links

struct hardLink_s* iosm_s::links

Pending hard linked file(s).

Definition at line 248 of file iosm.h.

Referenced by freeFSM(), freeIOSM(), fsmCommitLinks(), fsmStage(), iosmCommitLinks(), iosmStage(), and saveHardLink().

§ lmtab

char* iosm_s::lmtab

ar(1) long member name table.

Definition at line 317 of file iosm.h.

Referenced by arHeaderRead(), arHeaderWrite(), arSetup(), freeFSM(), fsmTeardown(), and iosmTeardown().

§ lmtablen

size_t iosm_s::lmtablen

ar(1) no. bytes in lmtab.

Definition at line 318 of file iosm.h.

Referenced by arHeaderRead(), arHeaderWrite(), arSetup(), and freeFSM().

§ lmtaboff

size_t iosm_s::lmtaboff

ar(1) current offset in lmtab.

Definition at line 319 of file iosm.h.

Referenced by arHeaderRead(), arHeaderWrite(), arSetup(), and freeFSM().

§ lpath

const char* iosm_s::lpath

Current link name.

Definition at line 222 of file iosm.h.

Referenced by cpioHeaderRead(), cpioHeaderWrite(), fsmStage(), iosmStage(), tarHeaderRead(), tarHeaderWrite(), writeFile(), and writeLinkedFile().

§ mapFlags

iosmMapFlags iosm_s::mapFlags

Bit(s) to control mapping.

Definition at line 286 of file iosm.h.

Referenced by fsmMapAttrs(), fsmMapPath(), fsmMkdirs(), fsmStage(), iosmMapAttrs(), iosmMapPath(), iosmMkdirs(), iosmStage(), and writeFile().

§ mkdirsdone

int iosm_s::mkdirsdone

Have "orphan" dirs been created?

Definition at line 275 of file iosm.h.

Referenced by fsmStage(), and iosmStage().

§ multithreaded

int iosm_s::multithreaded

Run stages on their own thread?

Definition at line 281 of file iosm.h.

Referenced by fsmNext(), fsmSetup(), iosmNext(), and iosmSetup().

§ nofcontexts

int iosm_s::nofcontexts

Disable file conexts?

Definition at line 285 of file iosm.h.

Referenced by fsmMapFContext(), fsmMkdirs(), fsmSetup(), iosmMapFContext(), and iosmSetup().

§ nofdigests

int iosm_s::nofdigests

Disable file digests?

Definition at line 284 of file iosm.h.

Referenced by fsmMapAttrs(), fsmSetup(), iosmMapAttrs(), and iosmSetup().

§ nstage

iosmFileStage iosm_s::nstage

Next file stage.

Definition at line 304 of file iosm.h.

Referenced by dnlNextIterator(), fsmNext(), and iosmNext().

§ nsuffix

const char* iosm_s::nsuffix

§ op_digest

struct rpmop_s iosm_s::op_digest

RPMSW_OP_DIGEST accumulator.

Definition at line 321 of file iosm.h.

Referenced by fsmTeardown(), iosmStage(), and iosmTeardown().

§ opath

const char* iosm_s::opath

Original file name.

Definition at line 224 of file iosm.h.

Referenced by fsmMakeLinks(), fsmStage(), iosmMakeLinks(), iosmStage(), and writeFile().

§ osb

struct stat iosm_s::osb

Original file stat(2) info.

Definition at line 306 of file iosm.h.

Referenced by fsmMkdirs(), fsmStage(), iosmMkdirs(), iosmStage(), and writeFile().

§ osuffix

const char* iosm_s::osuffix

Old, preserved, file suffix.

Definition at line 260 of file iosm.h.

Referenced by fsmMapPath(), fsmStage(), iosmMapPath(), and iosmStage().

§ path

const char* iosm_s::path

§ postpone

int iosm_s::postpone

Skip remaining stages?

Definition at line 272 of file iosm.h.

Referenced by fsmStage(), and iosmStage().

§ rc

int iosm_s::rc

External file stage return code.

Definition at line 277 of file iosm.h.

Referenced by fsmSetup(), fsmStage(), fsmTeardown(), iosmSetup(), iosmStage(), and iosmTeardown().

§ rdb

char* iosm_s::rdb

read: Buffer allocated.

Definition at line 232 of file iosm.h.

Referenced by fsmStage(), and iosmStage().

§ rdbuf

char* iosm_s::rdbuf

§ rdlen

size_t iosm_s::rdlen

read: Number of bytes requested.

Definition at line 234 of file iosm.h.

Referenced by iosmStage(), and writeFile().

§ rdnb

size_t iosm_s::rdnb

read: Number of bytes returned.

Definition at line 235 of file iosm.h.

Referenced by arRead(), arWrite(), cpioRead(), cpioWrite(), iosmStage(), tarRead(), tarWrite(), and writeFile().

§ rdsize

size_t iosm_s::rdsize

read: Buffer allocated size.

Definition at line 233 of file iosm.h.

Referenced by fsmStage(), iosmStage(), and writeFile().

§ repackaged

int iosm_s::repackaged

Is payload repackaged?

Definition at line 279 of file iosm.h.

Referenced by fsmStage(), and iosmStage().

§ rfd

FD_t iosm_s::rfd

read: File handle.

Definition at line 228 of file iosm.h.

Referenced by iosmStage(), and writeFile().

§ sb

struct stat iosm_s::sb

§ stage

iosmFileStage iosm_s::stage

External file stage.

Definition at line 303 of file iosm.h.

Referenced by fsmStage(), and iosmStage().

§ strict_erasures

int iosm_s::strict_erasures

Are Rmdir/Unlink failures errors?

Definition at line 280 of file iosm.h.

Referenced by fsmStage(), and iosmStage().

§ subbuf

char iosm_s::subbuf[64]

Definition at line 258 of file iosm.h.

§ subdir

const char* iosm_s::subdir

Current file sub-directory.

Definition at line 256 of file iosm.h.

Referenced by fsmMapPath(), fsmStage(), iosmMapPath(), and iosmStage().

§ sufbuf

char iosm_s::sufbuf[64]

Definition at line 265 of file iosm.h.

Referenced by fsmSetup(), fsmStage(), iosmSetup(), and iosmStage().

§ suffix

const char* iosm_s::suffix

Current file suffix.

Definition at line 264 of file iosm.h.

Referenced by fsmMapPath(), fsmStage(), iosmMapPath(), and iosmStage().

§ trailerWrite

int(* iosm_s::trailerWrite) (void *_iosm)

Definition at line 313 of file iosm.h.

Referenced by fsmSetup(), iosmSetup(), and iosmStage().

§ wfd

FD_t iosm_s::wfd

write: File handle.

Definition at line 236 of file iosm.h.

Referenced by extractRegular(), and iosmStage().

§ wrb

char* iosm_s::wrb

write: Buffer allocated.

Definition at line 240 of file iosm.h.

Referenced by fsmStage(), and iosmStage().

§ wrbuf

char* iosm_s::wrbuf

write: Buffer.

Definition at line 238 of file iosm.h.

Referenced by arHeaderRead(), arRead(), cpioHeaderRead(), cpioRead(), fsmStage(), iosmStage(), tarHeaderRead(), and tarRead().

§ wrlen

size_t iosm_s::wrlen

write: Number of bytes requested.

Definition at line 242 of file iosm.h.

Referenced by arRead(), cpioRead(), extractRegular(), iosmStage(), and tarRead().

§ wrnb

size_t iosm_s::wrnb

write: Number of bytes returned.

Definition at line 243 of file iosm.h.

Referenced by arWrite(), cpioWrite(), extractRegular(), iosmStage(), tarWrite(), and writeFile().

§ wrsize

size_t iosm_s::wrsize

write: Buffer allocated size.

Definition at line 241 of file iosm.h.

Referenced by cpioHeaderRead(), extractRegular(), fsmStage(), and iosmStage().


The documentation for this struct was generated from the following file: