Public Member Functions | Public Attributes

df_StandardAttr_t Struct Reference
[IVD Data format.]

#include <df_types.h>

List of all members.

Public Member Functions

 df_StandardAttr_t ()
 ~df_StandardAttr_t ()
void Dump (ostream &os)
void NetToHost ()

Public Attributes

UInt32_t numLinks
 number of hard links
UInt64_t idOnFS
 unique ID on FS (inode# + generation or file index)
UInt64_t type
 file type (ivd_FileType_e)
UInt64_t size
 file size (total)
UInt64_t attr
 mode+rdev (UX), attr (Win)
UInt32_t owner
 owner UID (UX only)
UInt32_t group
 group UID (UX only)
UInt32_t changeFlags
UInt32_t flags
ivd_Time_t timeCreate
ivd_Time_t timeAccess
ivd_Time_t timeModify
ivd_Time_t timeChange

Detailed Description

Definition at line 297 of file df_types.h.


Constructor & Destructor Documentation

df_StandardAttr_t::df_StandardAttr_t (  )  [inline]

Definition at line 298 of file df_types.h.

{};

df_StandardAttr_t::~df_StandardAttr_t (  )  [inline]

Definition at line 299 of file df_types.h.

{};


Member Function Documentation

void df_StandardAttr_t::Dump ( ostream &  os  ) 

Definition at line 73 of file df_StandardAttr_t.cpp.

References attr, changeFlags, cmn_ConvToTime_t(), flags, idOnFS, IVD_PRINT_ID_FS, numLinks, owner, size, cmn_Time::Time2YMDhms(), timeAccess, timeChange, timeCreate, timeModify, and type.

Referenced by fsc_nsAttrStream::Dump().

                                       {
    cmn_Time tcr(cmn_ConvToTime_t(timeCreate));
    cmn_Time tac(cmn_ConvToTime_t(timeAccess));
    cmn_Time tmo(cmn_ConvToTime_t(timeModify));
    cmn_Time tch(cmn_ConvToTime_t(timeChange));
    os  << "   standard attributes: "
        << "\n     numLinks    = " << numLinks 
        << "\n     idOnFS      = " << IVD_PRINT_ID_FS(idOnFS)
        << "\n     type        = " << type
        << "\n     size        = " << size
        << "\n     attr        = 0" << oct << attr << dec
        << "\n     owner       = " << owner
        << "\n     group       = " << group

        << "\n     changeFlags = " << changeFlags
        << "\n     flags       = " << flags

        << "\n     timeCreate  = " << tcr.Time2YMDhms()
        << "\n     timeAccess  = " << tac.Time2YMDhms()
        << "\n     timeModify  = " << tmo.Time2YMDhms()
        << "\n     timeChange  = " << tch.Time2YMDhms()
        << endl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void df_StandardAttr_t::NetToHost (  ) 

Definition at line 52 of file df_StandardAttr_t.cpp.

References attr, changeFlags, flags, idOnFS, ntoh(), numLinks, owner, size, timeAccess, timeChange, timeCreate, timeModify, and type.

Referenced by fsc_RawScan::DirTreeWalk(), fsc_nsAttrStream::Dump(), and hsm_IVDFSRecoverer::ProcRecFileHdr().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

mode+rdev (UX), attr (Win)

Definition at line 314 of file df_types.h.

Referenced by Dump(), DumpFile(), NetToHost(), ParseFile(), hsm_IVDFSRecoverer::ProcRecFileHdr(), and df_Unpacker::ReadRecFile().

Definition at line 320 of file df_types.h.

Referenced by Dump(), DumpFile(), NetToHost(), ParseFile(), and df_Unpacker::ReadRecFile().

group UID (UX only)

Definition at line 318 of file df_types.h.

Referenced by DumpFile(), ParseFile(), hsm_IVDFSRecoverer::ProcRecFileHdr(), and df_Unpacker::ReadRecFile().

unique ID on FS (inode# + generation or file index)

Definition at line 308 of file df_types.h.

Referenced by Dump(), DumpFile(), NetToHost(), ParseFile(), and df_Unpacker::ReadRecFile().

owner UID (UX only)

Definition at line 316 of file df_types.h.

Referenced by Dump(), DumpFile(), NetToHost(), ParseFile(), hsm_IVDFSRecoverer::ProcRecFileHdr(), and df_Unpacker::ReadRecFile().


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