|
ivderrcodes
cmnlog
Classes | |
| class | cmn_DirLst |
| DirLst class could list (return) directory entries by its name. More... | |
| class | cmn_FastDirLst |
| class cmn_FastDirLst is a differrent inplementation of cmn_DirLst class it use getdents instead of readdir on Linux. More... | |
| class | cmn_File |
| Basic (super) class for File IO. More... | |
| class | cmn_Global |
| class | cmn_LockID< _T > |
| Is a template to lock object by its ID. More... | |
| class | cmn_IDOwn< _T > |
| is used as LockIDhash element. More... | |
| class | cmn_LockIDbyOwn< _T, _size > |
| class | cmn_LockIDHash< _V, _T > |
| Template cmn_LockIDHash use many small cmn_LockIDbyOwn classes to store lock elements. More... | |
| class | cmn_SysInfo |
| class | cmn_Time |
| struct | fname_inode_t |
| class | cmn_TreeWalk |
| class | cmn_UTF8Converter |
| Converts from a specified code page to UTF-8 and back. More... | |
| struct | ivd_hsmattr_t |
| HSM Attributes - stored in IVD file system (typically as EA). More... | |
| class | ivd_Directories |
| class | ivd_Product |
| class | ivd_ModVersion |
| class | ivd_Versions |
| class | ivd_BaseException |
| The base exception class. More... | |
| class | ivd_Exception |
| Root exception class, used in IVD. More... | |
| class | ivd_InternalError |
| ivd_InternalError is thrown when an unexpected critical situation is detected. More... | |
| class | ivd_SysError |
| system errors. More... | |
| class | ivd_Error |
| ivd_Error is thrown when an IVD erroneous situation is detected. More... | |
| class | ivd_DFError |
| struct | ivd_FileSystemSize_t |
| File System sizes - platform independant structure. More... | |
| struct | cmn_FileInfo_t |
| class | stx_CacheEl |
| class | stx_CacheElRef |
| class | stx_CacheVec |
| class | stx_Cache |
| stx_CacheEl objects. More... | |
| class | stx_CacheArray< _MaxCacheSize > |
| class | stx_CacheArrayOfRefEl< _MaxCacheSize > |
| class | stx_XStack |
| stored in stack when some one need an ID ask IDmgr. More... | |
| class | cmn_LockOwn |
| class | stx_GroupOfEl< _T, _defGroupEl > |
| vector of _size number reserved elements with reference to owner More... | |
| class | stx_Groups< _G, _T > |
| Each owner reserve a groupID as handler to access to stx_Groups. More... | |
| class | stx_Stream |
| Base class to for IVD specific streams. More... | |
| class | cmn_Mutex |
| Mutex Class implemented in cmn_thread.cpp. More... | |
| class | cmn_MutexLock |
| cmn_MutexLock Automatic Mutex Class More... | |
| class | cmn_Condition |
| class | cmn_Semaphore |
| class | cmn_SemaphoreLock |
| class | cmn_Thread |
| Platform independent class for handling execution threads. More... | |
| class | cmn_oneWRmanyRD |
| class | cmn_WantReadLock |
| class | cmn_WantWriteLock |
| class | cmn_ThreadCounter |
| class | cmn_UUID_t |
| Struct encapsulates UUID generation, comparison, copying, making string versions,. More... | |
| struct | UInt48_t |
Exit codes | |
| Exit codes for all IVD binaries | |
| #define | ivd_EC_OK 0 |
| #define | ivd_EC_ERROR 1 |
| #define | ivd_EC_NOT_ENOUGH_ARG 10 |
| #define | ivd_EC_INVALID_ARG 11 |
| #define | ivd_EC_ENVIRONMENT 20 |
| #define | ivd_EC_STD_EXCEPTION 21 |
| #define | ivd_EC_UNKNOWN_EXCEPTION 22 |
Defines | |
| #define | ivd_MIN_BLOCK_SIZE_KB (32) |
| Smallest reasonable data block size. | |
| #define | ivd_MAX_BLOCK_SIZE_KB (16384) |
| Largest block size supported by SCSI subsystem. | |
| #define | ivd_MIN_BLOCK_SIZE (ivd_MIN_BLOCK_SIZE_KB*1024) |
| #define | ivd_MAX_BLOCK_SIZE (ivd_MAX_BLOCK_SIZE_KB*1024) |
| #define | ivd_MAX_HOSTNAME_SIZE (192) |
| Max hostname size is less than RFC size because of IVD internal database restrictions. | |
| #define | ivd_MAX_HOSTNAME_IDENTIFIER_SIZE (63) |
| #define | ivd_MAX_FILENAME (255) |
| #define | ivd_MAX_PATHNAME (4096) |
| #define | ivd_UUID_SIZE_d (16) |
| #define | ivd_UUID_STR_SIZE_d (36) |
| #define | fom_READ (1 << 0) |
| File open mode/flags (bit flags). | |
| #define | fom_WRITE (1 << 1) |
| #define | fom_READWRITE (fom_READ|fom_WRITE) |
| #define | fom_OPEN_EXISTING (1 << 4) |
| Create disposition. | |
| #define | fom_OPEN_ALWAYS (1 << 5) |
| #define | fom_CREATE_NEW (1 << 6) |
| #define | fom_CREATE_ALWAYS (1 << 7) |
| #define | fom_STREAM (1 << 8) |
| File stream I/O. | |
| #define | fom_STREAM_NO_DATA (1 << 9) |
| #define | fom_NO_BUFFERING (1 << 10) |
| #define | fom_APPEND (1 << 11) |
| #define | fom_LINK (1 << 12) |
| #define | fom_FILE_NO_SHARE_READ (1 << 13) |
| Share flags. | |
| #define | fom_FILE_NO_SHARE_WRITE (1 << 14) |
| #define | fom_DEFAULT_MODE_d (fom_READWRITE | fom_OPEN_EXISTING) |
| Default mode for OpenF(): read/write and open existing file (used when OpenF() is called without parameter). | |
| #define | fom_READ_MODE_d (fom_READ | fom_OPEN_EXISTING) |
| Read mode for OpenF(): read and open existing file. | |
| #define | stt_NONE 0 |
| File stream types. | |
| #define | stt_DATA 1 |
| #define | stt_ALTDATA 2 |
| #define | stt_META 3 |
| #define | stn_WIN_SECURITY "WIN.SEC" |
| File stream names/IDs. | |
| #define | stn_WIN_EA "WIN.EA" |
| #define | stn_WIN_LINK "WIN.LINK" |
| #define | stn_WIN_OBJID "WIN.OBJID" |
| #define | stn_WIN_PROPERTY "WIN.PROPERTY" |
| #define | stn_WIN_REPARSE "WIN.REPARSE" |
| #define | stn_WIN_SPARSE "WIN.SPARSE" |
| #define | ToUInt64(_h, _l) ((static_cast<UInt64_t>(_h) << 32) | _l) |
| #define | UInt64ToFILETIME_m(_ui, _ft) |
| #define | elementIsNotLocked_d -9999 |
| Class lock ID by owner or individual. | |
| #define | cmn_EXEC_WAIT (1 << 0) |
| Flags for cmn_ExecCommand functions. | |
| #define | cmn_EXEC_GET_STDOUT (1 << 1) |
| #define | cmn_EXEC_GET_STDERR (1 << 2) |
| #define | __OSVERSION__ = 11 |
| #define | LLONG_MAX (9223372036854775807LL) |
| #define | LLONG_MIN (-9223372036854775807LL -1) |
| #define | ULLONG_MAX (18446744073709551615ULL) |
| #define | PATH_SEPARATOR '/' |
| #define | WRONG_PATH_SEPARATOR '\\' |
| #define | WRONG_CHARS_IN_PATH "" |
| #define | IVD_MAX_PATH 32767 |
| #define | O_BINARY 0 |
| #define | ivd_GETTID pthread_self |
| #define | ivd_THREAD_EQUAL(_th1, _th2) (pthread_equal(_th1, _th2)) |
| #define | ivd_STAT(_file, _data) ::stat(_file, _data) |
| #define | ivd_Sleep(_sleepInSeconds) ::sleep(_sleepInSeconds) |
| #define | ivd_USleep(_sleepInMicroSec) ::usleep(_sleepInMicroSec) |
| #define | ivd_FTime(_tp) ::ftime(_tp) |
| #define | _LARGEFILE64_SOURCE |
| #define | _FILE_OFFSET_BITS 64 |
| #define | _tmain main |
| #define | _TCHAR char |
| #define | UTF8_TO_CONSOLE(_str) (cmn_UTF8ToLocale(string(_str))) |
| #define | CONSOLE_TO_UTF8(_str) (cmn_LocaleToUTF8(string(_str))) |
| #define | IVD_IPC_DECL_d |
| #define | IVD_CMN_DECL_d |
| #define | IVD_PARSER_DECL_d |
| #define | IVD_FILEIO_DECL_d |
| #define | IVD_DF_DECL_d |
| #define | IVD_UI_DECL_d |
| #define | IVD_RMDB_DECL_d |
| #define | IVD_FSC_DECL_d |
| #define | IVD_JOBS_DECL_d |
| #define | IVD_FSLIB_DECL_d |
| #define | IVD_FSAPI_DECL_d |
| #define | IVD_HSMDB_DECL_d |
| #define | IVD_SCSI_DECL_d |
| #define | IVD_UT_DECL_d |
| #define | ia_HSMATTR_NAME "user.IVD" |
| HSM Attributes name - used for naming IVD attributes (for example is stored in FS's Extended attributes). | |
| #define | ia_F_DIRTY fs_DIRTY |
| File Status Flags. | |
| #define | ia_F_OFFLINE fs_OFFLINE |
| #define | ivd_NULLCHK_m(_pointer, _type) |
| #define | CATCH_ALL_IVD_EXCEPTION |
| #define | ivd_ATTR_d ( 1 << 0 ) |
| data/stream type masks (only 4-bit in FSC!) | |
| #define | ivd_META_d ( 1 << 1 ) |
| #define | ivd_ALTDATA_d ( 1 << 2 ) |
| #define | ivd_DATA_d ( 1 << 3 ) |
| #define | ivd_MAX_NUM_OF_DIF_VECTOR_IN_REL_FILES_d 256 |
| #define | ivd_SIZE_OF_FIO_VECTOR_QUALIFERS_d 8 |
| #define | ivd_MAX_STREAM_SIZE(_recordSize) (_recordSize * ivd_MAX_NUM_OF_DIF_VECTOR_IN_REL_FILES_d) - ivd_SIZE_OF_FIO_VECTOR_QUALIFERS_d |
| #define | IVD_FILE_ID_FS(_ino, _gen) (((UInt64_t)(_gen) << 32) + (_ino)) |
| ID of file in UNIX filesystem = inode number + generation number. | |
| #define | IVD_FILE_INO(_id_fs) ((UInt32_t)(_id_fs & 0xFFFFFFFF)) |
| #define | IVD_FILE_GEN(_id_fs) ((UInt32_t)(_id_fs >> 32)) |
| #define | CHG_CLEAN_d 0x0000 |
| #define | CHG_CREATE_d 0x0001 |
| #define | CHG_DELETED_d 0x0002 |
| #define | CHG_NAMEOWN_d 0x0004 |
| #define | CHG_DATA_d 0x0100 |
| #define | CHG_ATTR_d 0x0200 |
| #define | CHG_META_d 0x0400 |
| #define | CHG_ALTDATA_d 0x0800 |
| #define | CHG_CHGSTREAM_d 0x0D00 |
| #define | CHG_CHGFILE_d 0x0F00 |
| #define | __OSVERSION__ = 2 |
| #define | __STRICT_ANSI__ 1 |
| #define | _XOPEN_SOURCE 600 |
| #define | _BSD_SOURCE 1 |
| #define | _REENTRANT |
| #define | _LARGEFILE64_SOURCE |
| #define | _FILE_OFFSET_BITS 64 |
| #define | LLONG_MAX (0x7FFFFFFFFFFFFFFFLL) |
| #define | LLONG_MIN (-LONG_LONG_MAX - 1LL) |
| #define | ULLONG_MAX (0xFFFFFFFFFFFFFFFFULL) |
| #define | PATH_SEPARATOR '/' |
| #define | WRONG_PATH_SEPARATOR '\\' |
| #define | WRONG_CHARS_IN_PATH "" |
| #define | IVD_MAX_PATH 32767 |
| #define | O_BINARY 0 |
| #define | ivd_GETTID pthread_self |
| #define | ivd_THREAD_EQUAL(_th1, _th2) (pthread_equal(_th1, _th2)) |
| #define | ivd_STAT(_file, _data) ::stat(_file, _data) |
| #define | ivd_Sleep(_sleepInSeconds) ::sleep(_sleepInSeconds) |
| #define | ivd_USleep(_sleepInMicroSec) ::usleep(_sleepInMicroSec) |
| #define | ivd_FTime(_tp) ::ftime(_tp) |
| #define | _tmain main |
| #define | _TCHAR char |
| #define | UTF8_TO_CONSOLE(_str) (cmn_UTF8ToLocale(string(_str))) |
| #define | CONSOLE_TO_UTF8(_str) (cmn_LocaleToUTF8(string(_str))) |
| #define | IVD_IPC_DECL_d |
| #define | IVD_CMN_DECL_d |
| #define | IVD_PARSER_DECL_d |
| #define | IVD_FILEIO_DECL_d |
| #define | IVD_DF_DECL_d |
| #define | IVD_UI_DECL_d |
| #define | IVD_RMDB_DECL_d |
| #define | IVD_FSC_DECL_d |
| #define | IVD_JOBS_DECL_d |
| #define | IVD_FSLIB_DECL_d |
| #define | IVD_FSAPI_DECL_d |
| #define | IVD_HSMDB_DECL_d |
| #define | IVD_SCSI_DECL_d |
| #define | IVD_UT_DECL_d |
| #define | _VER(_major, _minor, _patch) (((_major) << 24) + ((_minor) << 16) + (_patch)) |
| #define | _VER_MAJOR(_ver) ((_ver) >> 24) |
| #define | _VER_MINOR(_ver) (((_ver) >> 16) & 0xFF) |
| #define | _VER_PATCH(_ver) ((_ver) & 0xFFFF) |
| #define | IVD_POSIX_OS 1 |
| #define | IVD_ENDIAN_LITTLE (TGT_ARCH_ia32) |
| #define | IVD_ENDIAN_BIG !(IVD_ENDIAN_LITTLE) |
| #define | cmn_OFFSETOF(_T, _M) offsetof(_T, _M) |
| #define | cmn_JOIN(A, B) cmn_DO_JOIN(A, B) |
| #define | cmn_DO_JOIN(A, B) cmn_DO_JOIN2(A, B) |
| #define | cmn_DO_JOIN2(A, B) A##B |
| #define | __OSVERSION__ 5 |
| #define | _WIN32_WINNT 0x0500 |
| #define | PATH_SEPARATOR '\\' |
| #define | WRONG_PATH_SEPARATOR '/' |
| #define | WRONG_CHARS_IN_PATH "*?<>|\"" |
| #define | IVD_MAX_PATH 32767 |
| #define | LLONG_MIN _I64_MIN |
| #define | LLONG_MAX _I64_MAX |
| #define | ULLONG_MAX _UI64_MAX |
| #define | ivd_GETTID() GetCurrentThreadId() |
| #define | ivd_THREAD_EQUAL(_th1, _th2) ((_th1)==(_th2)) |
| #define | ivd_STAT(_file, _data) _stat(_file, _data) |
| #define | ivd_FTime(_tp) _ftime((_timeb *)(_tp)) |
| #define | ivd_Sleep(_sleepInSeconds) ::Sleep((DWORD)(1000*(_sleepInSeconds))) |
| #define | ivd_USleep(_sleepInMicroSec) ::Sleep((DWORD)(_sleepInMicroSec)/1000 + 1) |
| #define | strncasecmp(s1, s2, count) _strnicmp(s1, s2, count) |
| #define | strcasecmp(s1, s2) _stricmp(s1, s2) |
| #define | snprintf _snprintf |
| #define | isatty(_h) _isatty(_h) |
| #define | strtoll(_s, _e, _b) _strtoi64(_s, _e, _b) |
| #define | strtoull(_s, _e, _b) _strtoui64(_s, _e, _b) |
| #define | UTF8_TO_CONSOLE(_str) cmn_MultiByteToOEMString(_str) |
| #define | CONSOLE_TO_UTF8(_str) cmn_OEMStringToMultiByte(_str) |
| #define | IVD_IPC_DECL_d __declspec(dllimport) |
| #define | IVD_IPC_EXPIMP_d extern |
| #define | IVD_CMN_DECL_d __declspec(dllimport) |
| #define | IVD_CMN_EXPIMP_d extern |
| #define | IVD_PARSER_DECL_d __declspec(dllimport) |
| #define | IVD_PARSER_EXPIMP_d extern |
| #define | IVD_FILEIO_DECL_d __declspec(dllimport) |
| #define | IVD_FILEIO_EXPIMP_d extern |
| #define | IVD_DF_DECL_d __declspec(dllimport) |
| #define | IVD_DF_EXPIMP_d extern |
| #define | IVD_UI_DECL_d __declspec(dllimport) |
| #define | IVD_UI_EXPIMP_d extern |
| #define | IVD_RMDB_DECL_d __declspec(dllimport) |
| #define | IVD_RMDB_EXPIMP_d extern |
| #define | IVD_FSC_DECL_d __declspec(dllimport) |
| #define | IVD_FSC_EXPIMP_d extern |
| #define | IVD_JOBS_DECL_d __declspec(dllimport) |
| #define | IVD_JOBS_EXPIMP_d extern |
| #define | IVD_FSLIB_DECL_d __declspec(dllimport) |
| #define | IVD_FSAPI_DECL_d __declspec(dllimport) |
| #define | IVD_FSAPI_EXPIMP_d extern |
| #define | IVD_HSMDB_DECL_d __declspec(dllimport) |
| #define | IVD_HSMDB_EXPIMP_d extern |
| #define | IVD_SCSI_DECL_d __declspec(dllimport) |
| #define | IVD_SCSI_EXPIMP_d extern |
| #define | IVD_UT_DECL_d __declspec(dllimport) |
| #define | IVD_UT_EXPIMP_d extern |
| #define | IVD_API_DECL_d __declspec(dllimport) |
| #define | IVD_API_EXPIMP_d extern |
Typedefs | |
| typedef vector< fname_inode_t > | fname_inode_vec_t |
| typedef vector< fname_inode_vec_t > | fname_inode_vec_vec_t |
| typedef uint64_t | UInt64_t |
| typedef uint32_t | UInt32_t |
| typedef uint16_t | UInt16_t |
| typedef uint8_t | UInt8_t |
| typedef int64_t | Int64_t |
| typedef int32_t | Int32_t |
| typedef int16_t | Int16_t |
| typedef int8_t | Int8_t |
| typedef pthread_t | ivd_ThreadID_t |
| typedef struct stat | ivd_Stat_t |
| typedef int | ivd_FileHandle_t |
| typedef size_t | ivd_FileBufSize_t |
| typedef ssize_t | ivd_FileRetSize_t |
| typedef off64_t | ivd_FilePosition_t |
| typedef off64_t | ivd_FileSize_t |
| typedef time_t | ivd_Time32_t |
| typedef DIR * | ivd_DirHandle_t |
| typedef UInt64_t | ivd_Time_t |
| typedef UInt32_t | ivd_RecordIDX_t |
| typedef UInt32_t | ivd_PartitionID_t |
| typedef ivd_RecordIDX_t | ivd_FileID_t |
| typedef UInt16_t | ivd_VectorSize_t |
| typedef UInt8_t | ivd_RelFileID_t |
| typedef int | ivd_TransactionID_t |
| typedef UInt16_t | ivd_DataType_t |
| which bit mean which data | |
| typedef UInt32_t | ivd_MedVolNum_t |
| Type of fileio record index. | |
| typedef UInt32_t | ivd_MediaKey_t |
| typedef UInt32_t | ivd_BlockOffset_t |
| typedef UInt64_t | ivd_MigrationID_t |
| typedef UInt16_t | ivd_CopyID_t |
| typedef UInt32_t | ivd_Inode_t |
| typedef UInt64_t | ivd_GenInode_t |
| typedef UInt16_t | hsm_ChgFlag_t |
| typedef vector< cmn_FileInfo_t > | cmn_FileInfo_t_v |
| typedef uint64_t | UInt64_t |
| typedef uint32_t | UInt32_t |
| typedef uint16_t | UInt16_t |
| typedef uint8_t | UInt8_t |
| typedef int64_t | Int64_t |
| typedef int32_t | Int32_t |
| typedef int16_t | Int16_t |
| typedef int8_t | Int8_t |
| typedef UInt64_t | stx_CacheKey_t |
| Key is by default 64 bit, shorter integer can be used. | |
| typedef vector< stx_CacheEl * > ::iterator | stx_CacheVec_i |
| typedef vector< stx_CacheVec > ::iterator | stx_Cache_i |
| typedef __int64 | Int64_t |
| typedef long | Int32_t |
| typedef short | Int16_t |
| typedef char | Int8_t |
| typedef char | Char_t |
| typedef unsigned __int64 | UInt64_t |
| typedef unsigned long | UInt32_t |
| typedef unsigned short | UInt16_t |
| typedef unsigned char | UInt8_t |
| typedef wchar_t | WChar_t |
Enumerations | |
| enum | cmn_Lock_e { eNotLocked = 0, eLocked, eLckSameOwn, eLckOtherOwn } |
| enum | ivd_ByteOrder_e { ibo_ENDIAN_LITTLE = 1, ibo_ENDIAN_BIG = 2 } |
| enum | ivd_FileState_e { ifs_NOSTATE = 0, ifs_FORMIGRATION = 1, ifs_DOMIGRATION = 2, ifs_MIGRATED = 3 } |
| enum | ivd_CommonArg_e { ica_NO_CMN_ARG = 0, ica_HELP = 1, ica_NODAEMON = 2 } |
| enum | ivd_ShowFlags_e { isf_DETAIL = 1 << 0, isf_VERBOSE = 1 << 1, isf_SH_DIRTY = 1 << 2, isf_SH_MIG_CAN = 1 << 3, isf_SENTINEL = 0x03 } |
| What information user need. More... | |
| enum | ivd_FileType_e { ift_UNKNOWN = 0, ift_FILE = 1, ift_DIR = 2, ift_CHR_DEV = 3, ift_BLK_DEV = 4, ift_FIFO = 5, ift_SYMLINK = 6, ift_SOCKET = 7 } |
| File type - platform independant type (should cover all platforms). More... | |
Functions | |
| cmn_Path IVD_CMN_DECL_d | cmn_GetCurrentDir () |
| void IVD_CMN_DECL_d | cmn_SetCurrentDir (const string &a_name) |
| void IVD_CMN_DECL_d | cmn_CopyFile (const cmn_Path &a_source, const cmn_Path &a_destination) |
| void IVD_CMN_DECL_d | cmn_MoveFile (const cmn_Path &a_old, const cmn_Path &a_destination) |
| int IVD_CMN_DECL_d | cmn_ExecCommand (const string a_cmd, vector< string > &a_args, const UInt32_t a_flags=0, void(*a_outcb)()=NULL) |
| Execute command: specified command is executed with specifed arguments. | |
| void IVD_CMN_DECL_d | cmn_DaemonInit () |
| Daemonize currect process: fork() another process and continute execution in that process, while parent process exit() immedeatelly. | |
| ostream & | operator<< (ostream &os, const fname_inode_vec_t &fv) |
| istream & | operator>> (istream &is, fname_inode_vec_t &fv) |
| IVD_CMN_DECL_d string | cmn_LocaleToUTF8 (const string &a_locale) |
| IVD_CMN_DECL_d string | cmn_UTF8ToLocale (const string &a_utf8) |
| UInt64_t | hton (UInt64_t a_hostll) |
| UInt64_t | ntoh (UInt64_t a_netll) |
| UInt32_t | hton (UInt32_t a_hostll) |
| UInt32_t | ntoh (UInt32_t a_netll) |
| UInt16_t | hton (UInt16_t a_hostll) |
| UInt16_t | ntoh (UInt16_t a_netll) |
| UInt32_t | hton24 (UInt32_t a_hostll) |
| UInt32_t | ntoh24 (UInt32_t a_netll) |
| void | ivd_ThrowNullChk (const string a_type) |
| IVD_CMN_DECL_d ostream & | operator<< (ostream &a_ostream, const cmn_UUID_t &a_uuid) |
Variables | |
| IVD_CMN_DECL_d cmn_Global | g_cmn |
| const UInt32_t | cmn_MAX_UTF8_CHAR_SIZE_c |
| #define _TCHAR char |
Definition at line 110 of file hpux.h.
Referenced by _tmain(), _tvchdir(), add_num_time_t(), alloca(), at_begline_loc_p(), at_endline_loc_p(), basename(), compile_range(), dirname(), find_stack_direction(), fnmatch(), format_date(), fprintxWriteDataToFile(), getgroup(), getstr(), getuser(), insert_exec_ok(), insert_fprintf(), insert_lname(), insert_regex(), list_file(), make_segment(), next_element(), NtStat(), pred_empty(), pred_exec(), pred_fprintf(), pred_iname(), pred_name(), pred_nogroup(), pred_nouser(), process_dir(), re_compile_fastmap(), re_match_2_internal(), re_search_2(), regcomp(), regerror(), regex_compile(), savedir(), set_new_parent(), xgetcwd(), xstrdup(), and zone_name().
| #define _VER | ( | _major, | |||
| _minor, | |||||
| _patch | ) | (((_major) << 24) + ((_minor) << 16) + (_patch)) |
| #define CATCH_ALL_IVD_EXCEPTION |
Value:
catch (ivd_DFError &ie) { \ log_ERR_m(ie);\ return 1;\ }\ catch (ivd_Error &ie) { \ log_ERR_m(ie);\ return 1;\ }\ catch (ivd_SysError &ie) { \ log_ERR_m(ie);\ return 1;\ }\ catch (ivd_InternalError &iie) {\ log_ERR_m(iie);\ return 1;\ }\ catch (...) {\ log_ERR_m("Caught unknown exception.");\ return 1;\ }
Definition at line 291 of file ivderror.h.
Referenced by main().
| #define CHG_ALTDATA_d 0x0800 |
Definition at line 318 of file ivdtypes.h.
| #define CHG_ATTR_d 0x0200 |
Definition at line 316 of file ivdtypes.h.
Referenced by hsm_FileHeader::Event(), and log_ivdfs::Write().
| #define CHG_CHGFILE_d 0x0F00 |
Definition at line 320 of file ivdtypes.h.
Referenced by hsm_FileHeader::MigrationIsDone(), and i_HSM_i::PackFile().
| #define CHG_CHGSTREAM_d 0x0D00 |
| #define CHG_CLEAN_d 0x0000 |
Definition at line 308 of file ivdtypes.h.
| #define CHG_CREATE_d 0x0001 |
Definition at line 310 of file ivdtypes.h.
Referenced by hsm_FileHeader::Event(), and log_ivdfs::Write().
| #define CHG_DATA_d 0x0100 |
Definition at line 315 of file ivdtypes.h.
Referenced by hsm_FileHeader::CompleteMigIsDone(), hsm_FileHeader::Event(), hsm_FileHeader::GetFileSizeForMig(), and i_HSM_i::PackFile().
| #define CHG_DELETED_d 0x0002 |
Definition at line 311 of file ivdtypes.h.
Referenced by hsm_ActiveFH::ActiveToList(), hsm_FileHeader::CompleteMigIsDone(), hsm_FileHeader::Event(), GetInodeObj(), hsmGetDirFH(), hsm_FileHeader::InitActive(), hsm_InoObj::IsDeleted(), hsm_ActiveFH::OrphanedToMigList(), i_HSM_i::PackFile(), hsm_InoObj::SetInodeChgFlag(), hsm_FileHeader::ToMigCand(), and log_ivdfs::Write().
| #define CHG_META_d 0x0400 |
Definition at line 317 of file ivdtypes.h.
| #define CHG_NAMEOWN_d 0x0004 |
Definition at line 312 of file ivdtypes.h.
Referenced by hsm_FileHeader::Event(), hsm_FileHeader::NewName(), hsm_FileHeader::NewOwner(), and log_ivdfs::Write().
| #define cmn_EXEC_GET_STDERR (1 << 2) |
| #define cmn_EXEC_GET_STDOUT (1 << 1) |
| #define cmn_EXEC_WAIT (1 << 0) |
Flags for cmn_ExecCommand functions.
Definition at line 26 of file cmn_proc.h.
Referenced by cmn_ExecCommand(), and ivd_DD::Run().
| #define cmn_OFFSETOF | ( | _T, | |||
| _M | ) | offsetof(_T, _M) |
| #define CONSOLE_TO_UTF8 | ( | _str | ) | cmn_OEMStringToMultiByte(_str) |
| #define CONSOLE_TO_UTF8 | ( | _str | ) | (cmn_LocaleToUTF8(string(_str))) |
| #define CONSOLE_TO_UTF8 | ( | _str | ) | (cmn_LocaleToUTF8(string(_str))) |
| #define elementIsNotLocked_d -9999 |
Class lock ID by owner or individual.
OwnerID is negative at individual lock and vice versa.
Definition at line 78 of file cmn_lockidbyown.h.
Referenced by cmn_LockIDbyOwn< _T, _size >::CanLockByIDOwnNoMutex(), and fio_TransGroupLock< _T, _defTransEl >::LockByIDOwn().
| #define fom_APPEND (1 << 11) |
Definition at line 45 of file cmn_File.h.
| #define fom_CREATE_ALWAYS (1 << 7) |
Definition at line 38 of file cmn_File.h.
Referenced by cmn_CopyFile(), cmn_File::OpenF(), blk_DiskFRIWriter::OpenFRIFile(), bea_DupReadThread::ReadMedVolume(), ReadOneBackupFromMedium(), UnpackFile(), and bea_DiskVolume::WriteVolInfo().
| #define fom_CREATE_NEW (1 << 6) |
Definition at line 37 of file cmn_File.h.
Referenced by blk_DiskBufferWriter::blk_DiskBufferWriter(), fsc_DataCollectorStorage::CreateFile(), bea_DiskVolume::CreateNewFile(), fsc_RawMediumContentCollector::fsc_RawMediumContentCollector(), i_UploadAgent_i::i_UploadAgent_i(), ivd_FS_File::Open(), cmn_File::OpenF(), cmn_FileTest::WriteContents(), and pf_File::WriteFile().
| #define fom_DEFAULT_MODE_d (fom_READWRITE | fom_OPEN_EXISTING) |
Default mode for OpenF(): read/write and open existing file (used when OpenF() is called without parameter).
Definition at line 57 of file cmn_File.h.
| #define fom_FILE_NO_SHARE_READ (1 << 13) |
| #define fom_FILE_NO_SHARE_WRITE (1 << 14) |
| #define fom_LINK (1 << 12) |
| #define fom_NO_BUFFERING (1 << 10) |
| #define fom_OPEN_ALWAYS (1 << 5) |
Definition at line 36 of file cmn_File.h.
Referenced by blk_DiskBufferWriter::blk_DiskBufferWriter(), DumpBSStart(), DumpFile(), fio_File::fio_File(), fsc_MedVolWriter::Flush(), fsc_DataCollectorStorage::Flush(), ivd_FS_File::Open(), cmn_File::OpenF(), ui_MsgWriter::OpenFile(), blk_DiskFRIWriter::OpenFRIFile(), and cmn_FileTest::WriteContents().
| #define fom_OPEN_EXISTING (1 << 4) |
Create disposition.
Definition at line 35 of file cmn_File.h.
Referenced by blk_DiskBufferReader::blk_DiskBufferReader(), blk_DiskFRIReader::blk_DiskFRIReader(), ClearPDBI(), bea_FRI::CopyFromDiskToMedium(), df_FileBlockReader::df_FileBlockReader(), i_DownloadAgent_i::i_DownloadAgent_i(), ipc_ReadFromFile(), main(), ivd_FS_File::Open(), cmn_FileTest::OpenContents(), ParseDiskMediumVolume(), ParseFile(), RecOpen::ProcessEntry(), cmn_FileTest::ReadContents(), pf_File::ReadFile(), hsm_FHADPRecall::RecallFileFromADP(), and ivd_FS_File::TriggerEvent().
| #define fom_READ (1 << 0) |
File open mode/flags (bit flags).
Required access mode to the file
Definition at line 30 of file cmn_File.h.
Referenced by blk_DiskBufferReader::blk_DiskBufferReader(), blk_DiskFRIReader::blk_DiskFRIReader(), bea_FRI::CopyFromDiskToMedium(), df_FileBlockReader::df_FileBlockReader(), fio_File::fio_File(), i_DownloadAgent_i::i_DownloadAgent_i(), i_RestoreAgent_i::i_RestoreAgent_i(), ipc_ReadFromFile(), Collocation::IsReplicated(), ivd_FS_File::Open(), cmn_File::OpenF(), PackFile(), ParseDiskMedium(), ParseDiskMediumVolume(), ParseFile(), cmn_FileTest::ReadContents(), pf_File::ReadFile(), bea_DiskVolume::ReadVolInfo(), hsm_FHADPRecall::RecallFileFromADP(), bea_DiskVolume::SeekBlock(), ivd_FS_File::TriggerEvent(), bea_DupWriteThread::WriteMedVolume(), and WriteToMedium().
| #define fom_READ_MODE_d (fom_READ | fom_OPEN_EXISTING) |
Read mode for OpenF(): read and open existing file.
Definition at line 62 of file cmn_File.h.
Referenced by cmn_CopyFile(), GetPDBI(), ivd_AccessFsAttr(), and main().
| #define fom_READWRITE (fom_READ|fom_WRITE) |
Definition at line 32 of file cmn_File.h.
Referenced by bea_DiskVolume::Erase(), fio_File::fio_File(), ivd_FS_File::Open(), cmn_File::OpenF(), bea_DiskVolume::ReadRaw(), bea_DiskVolume::SeekEOD(), bea_DiskVolume::SeekFileMark(), and bea_DiskVolume::WriteRaw().
| #define fom_STREAM (1 << 8) |
File stream I/O.
Definition at line 41 of file cmn_File.h.
Referenced by cmn_File::GetStreamHeader(), ivd_FS_File::Open(), PackFile(), cmn_File::SetStreamHeader(), and UnpackFile().
| #define fom_STREAM_NO_DATA (1 << 9) |
Definition at line 42 of file cmn_File.h.
Referenced by cmn_File::GetStreamHeader(), and ivd_FS_File::Open().
| #define fom_WRITE (1 << 1) |
Definition at line 31 of file cmn_File.h.
Referenced by blk_DiskBufferWriter::blk_DiskBufferWriter(), ClearPDBI(), cmn_CopyFile(), fsc_DataCollectorStorage::CreateFile(), DumpBSStart(), DumpFile(), fsc_MedVolWriter::Flush(), fsc_DataCollectorStorage::Flush(), fsc_RawMediumContentCollector::fsc_RawMediumContentCollector(), i_BackupAgent_i::i_BackupAgent_i(), i_UploadAgent_i::i_UploadAgent_i(), main(), ivd_FS_File::Open(), cmn_File::OpenF(), ui_MsgWriter::OpenFile(), blk_DiskFRIWriter::OpenFRIFile(), bea_DupReadThread::ReadMedVolume(), ReadOneBackupFromMedium(), UnpackFile(), cmn_FileTest::WriteContents(), pf_File::WriteFile(), and bea_DiskVolume::WriteVolInfo().
| #define ia_F_DIRTY fs_DIRTY |
| #define ia_F_OFFLINE fs_OFFLINE |
Definition at line 42 of file include/ivd/hsm_attr.h.
| #define ia_HSMATTR_NAME "user.IVD" |
HSM Attributes name - used for naming IVD attributes (for example is stored in FS's Extended attributes).
Definition at line 35 of file include/ivd/hsm_attr.h.
| #define ivd_ALTDATA_d ( 1 << 2 ) |
Definition at line 106 of file ivdtypes.h.
Referenced by cmn_GetMigFlags(), and fsc_Split::IsZeroSizeSplit().
| #define ivd_ATTR_d ( 1 << 0 ) |
data/stream type masks (only 4-bit in FSC!)
Definition at line 104 of file ivdtypes.h.
Referenced by df_FRI::BlockWritten(), fsc_VolumeCheck::Check(), cmn_GetMigFlags(), df_SplitInfoUnpacker::ProcRecFileHdr(), and df_FRIDistiller::ProcRecFileHdr().
| #define ivd_DATA_d ( 1 << 3 ) |
Definition at line 107 of file ivdtypes.h.
Referenced by fsc_VolumeCheck::Check(), cmn_GetMigFlags(), fsc_GenerationMgr::GetCopiesPos(), fsc_CopyMgr::GetCopiesPos(), fsc_SplitMgr::GetMediaPos(), fsc_RawReorgScanDataCollector::IsReorgCandidate(), fsc_RawReorgScanDataCollector::ProcRecGeneration(), and fsc_RawReorgScanDataCollector::ProcVecGeneration().
| #define ivd_EC_ENVIRONMENT 20 |
| #define ivd_EC_ERROR 1 |
Definition at line 44 of file cmn_defines.h.
Referenced by _tmain(), ClientLoop(), FileName2IPCFileList(), FileName2IPCStringList(), InputFile2IPCFileList(), main(), ServerLoop(), and VerifyNS().
| #define ivd_EC_INVALID_ARG 11 |
| #define ivd_EC_NOT_ENOUGH_ARG 10 |
| #define ivd_EC_OK 0 |
Definition at line 42 of file cmn_defines.h.
Referenced by _tmain(), main(), Parse(), ServiceInstall(), ServiceLoop(), and ServiceRemove().
| #define ivd_EC_STD_EXCEPTION 21 |
Definition at line 50 of file cmn_defines.h.
Referenced by _tmain(), main(), and api_Base::~api_Base().
| #define ivd_EC_UNKNOWN_EXCEPTION 22 |
Definition at line 51 of file cmn_defines.h.
Referenced by _tmain(), main(), and api_Base::~api_Base().
| #define IVD_FILE_GEN | ( | _id_fs | ) | ((UInt32_t)(_id_fs >> 32)) |
Definition at line 279 of file ivdtypes.h.
| #define IVD_FILE_ID_FS | ( | _ino, | |||
| _gen | ) | (((UInt64_t)(_gen) << 32) + (_ino)) |
ID of file in UNIX filesystem = inode number + generation number.
Definition at line 277 of file ivdtypes.h.
| #define IVD_FILE_INO | ( | _id_fs | ) | ((UInt32_t)(_id_fs & 0xFFFFFFFF)) |
Definition at line 278 of file ivdtypes.h.
| #define ivd_FTime | ( | _tp | ) | ::ftime(_tp) |
| #define ivd_GETTID pthread_self |
Definition at line 71 of file hpux.h.
Referenced by cmn_Mutex::Lock(), log_Output(), log_Stack::log_Stack(), cmn_Mutex::Unlock(), log_Debugger::WriteHeader(), cmn_Mutex::~cmn_Mutex(), and log_Stack::~log_Stack().
| #define ivd_MAX_BLOCK_SIZE (ivd_MAX_BLOCK_SIZE_KB*1024) |
| #define ivd_MAX_BLOCK_SIZE_KB (16384) |
| #define ivd_MAX_FILENAME (255) |
Definition at line 70 of file cmn_defines.h.
| #define ivd_MAX_HOSTNAME_IDENTIFIER_SIZE (63) |
| #define ivd_MAX_HOSTNAME_SIZE (192) |
Max hostname size is less than RFC size because of IVD internal database restrictions.
Definition at line 67 of file cmn_defines.h.
Referenced by cmn_SysInfo::ParseServices(), and val_Hostname::Validate().
| #define ivd_MAX_NUM_OF_DIF_VECTOR_IN_REL_FILES_d 256 |
Definition at line 109 of file ivdtypes.h.
| #define IVD_MAX_PATH 32767 |
Definition at line 64 of file hpux.h.
Referenced by _tmain(), cmn_GetCurrentDir(), cmn_MultiByteToOEMString(), cmn_MultiByteToWString(), cmn_OEMStringToMultiByte(), cmn_RegGetKeys(), cmn_RegGetValue(), cmn_RegSetMultiValues(), cmn_SetCurrentDir(), cmn_WideCharToString(), dumpToFileMac(), fprintxWriteDataToFile(), getConfigPath(), launch(), NtStat(), pred_print(), pred_print0(), savedir(), and xgetcwd().
| #define ivd_MAX_PATHNAME (4096) |
Definition at line 71 of file cmn_defines.h.
Referenced by cmn_File::ReadLink(), and ServiceInstall().
| #define ivd_MAX_STREAM_SIZE | ( | _recordSize | ) | (_recordSize * ivd_MAX_NUM_OF_DIF_VECTOR_IN_REL_FILES_d) - ivd_SIZE_OF_FIO_VECTOR_QUALIFERS_d |
Definition at line 118 of file ivdtypes.h.
| #define ivd_META_d ( 1 << 1 ) |
| #define ivd_MIN_BLOCK_SIZE (ivd_MIN_BLOCK_SIZE_KB*1024) |
| #define ivd_MIN_BLOCK_SIZE_KB (32) |
| #define ivd_NULLCHK_m | ( | _pointer, | |||
| _type | ) |
Value:
if ( _pointer == NULL) { \ ivd_ThrowNullChk(_type); \ }
Definition at line 273 of file ivderror.h.
Referenced by i_HSM_i::ActivateFiles(), fio_JourMgr::AddNewJourFile(), cmn_FastFileSearch::cmn_FastFileSearch(), cmn_LockIDHash< cmn_LockIDbyOwn, _T >::cmn_LockIDHash(), fs_api::CreateNewFH(), fio_CirFileTrans::fio_CirFileTrans(), fio_DataBase::fio_DataBase(), fio_JourFile::fio_JourFile(), fio_JourMgr::fio_JourMgr(), fs_api::GetDirFH(), GetInodeObj(), fio_TransLstMgr::GetTransObj(), hdb_Tables::hdb_Tables(), hsm_Containers::hsm_Containers(), hsmGetDirFH(), fio_TransLstMgr::Init(), hsm_FileHeader::InitActive(), fio_RelFileTransLstMgr::Insert(), fio_TransGroupLock< _T, _defTransEl >::LockByIDOwn(), fio_CirFileTrans::SetRecIndeces(), and hsm_Containers::Stop().
| #define ivd_SIZE_OF_FIO_VECTOR_QUALIFERS_d 8 |
Definition at line 116 of file ivdtypes.h.
| #define ivd_Sleep | ( | _sleepInSeconds | ) | ::Sleep((DWORD)(1000*(_sleepInSeconds))) |
| #define ivd_Sleep | ( | _sleepInSeconds | ) | ::sleep(_sleepInSeconds) |
| #define ivd_Sleep | ( | _sleepInSeconds | ) | ::sleep(_sleepInSeconds) |
Definition at line 75 of file hpux.h.
Referenced by i_RecreatedIVDFSJob_i::Execute(), i_MigrationJob_i::Execute(), ivd_FS_Event::GetRootDir(), i_ManagementInterface_i::i_ManagementInterface_i(), ipc_Corba::Init(), InitializeIPC(), main(), i_HSM_i::MigrateByAPI(), bea_TapeDrive::Open(), i_Job_i::RequestDiskBuffer(), ipc_Corba::Resolve(), scsi_LnxSG::SGOpen(), Sleep(), STapeOpen(), hsm_Containers::Stop(), scsi_IO::WaitToBecomeReady(), i_LibraryAgentSCSI_i::~i_LibraryAgentSCSI_i(), i_PartitionManager_i::~i_PartitionManager_i(), job_Manager::~job_Manager(), and rm_Queue::~rm_Queue().
| #define ivd_STAT | ( | _file, | |||
| _data | ) | ::stat(_file, _data) |
| #define ivd_THREAD_EQUAL | ( | _th1, | |||
| _th2 | ) | (pthread_equal(_th1, _th2)) |
| #define ivd_THREAD_EQUAL | ( | _th1, | |||
| _th2 | ) | (pthread_equal(_th1, _th2)) |
| #define ivd_USleep | ( | _sleepInMicroSec | ) | ::Sleep((DWORD)(_sleepInMicroSec)/1000 + 1) |
| #define ivd_USleep | ( | _sleepInMicroSec | ) | ::usleep(_sleepInMicroSec) |
| #define ivd_USleep | ( | _sleepInMicroSec | ) | ::usleep(_sleepInMicroSec) |
Definition at line 76 of file hpux.h.
Referenced by TreeWalk::CheckDir(), i_HSM_i::CompleteMigration(), ivd_Delay::Delay(), i_HSM_i::DoMigrationJob(), i_HSM_i::EfficientRecall(), hsm_Recall::FileRecalledCheck(), fs_api::FindAndPrepareFH(), i_ReorgJob_i::MediumOperationComplete(), i_RedundantCopyJob_i::MediumOperationComplete(), i_HSM_i::Recall(), hsm_FHADPRecall::RecallFilesFromList(), hsm_Recall::RecallOfFileCanceled(), hsm_FHmigc::SendToPM(), scsi_IO::SkipAttAndDeferred(), hsm_FHrelc::Truncate(), and i_Job_i::WaitBea().
| #define ivd_UUID_SIZE_d (16) |
Definition at line 73 of file cmn_defines.h.
| #define ivd_UUID_STR_SIZE_d (36) |
Definition at line 74 of file cmn_defines.h.
Referenced by rm_Operator::ClearRecoveryFlag(), rm_MajorCol::Next(), rm_Partition::Next(), rm_MediumVol::Next(), rm_MediaPool::Next(), rm_MajorCol::Select(), rm_Partition::Select(), rm_MediumVol::Select(), rm_MediaPool::Select(), rm_MediumVol::SelectByMajColId(), rm_MediumVol::SelectByMedium(), rm_MediumVol::SelectByMedVolId(), rm_Partition::SelectByName(), rm_MediaPool::SelectByName(), rm_MediumVol::SelectByPartition(), rm_Partition::SelectByUuid(), rm_MediaPool::SelectByUUID(), rm_MediumVol::SelectEmptyCollocation(), rm_Operator::SelectMediumVol(), rm_Operator::SetRecoveryFlag(), cmn_UUID_t::ToString(), rm_Operator::VolumeEmpty(), and rm_Operator::VolumeFull().
| #define LLONG_MAX (9223372036854775807LL) |
| #define LLONG_MIN (-9223372036854775807LL -1) |
| #define O_BINARY 0 |
Definition at line 67 of file hpux.h.
Referenced by blk_StdIOReader::blk_StdIOReader(), and blk_StdIOWriter::blk_StdIOWriter().
| #define PATH_SEPARATOR '/' |
Definition at line 57 of file hpux.h.
Referenced by cmn_Path::GetAbsolutePathName(), getConfigPath(), fsc_FileExpiration::GetExpirationAge(), fsc_FileExpiration::GetExpirationAgeRecursive(), cmn_Path::GetFileName(), cmn_Path::IsAbsolute(), i_HSM_i::IVDFSPrepareRecovery(), main(), cmn_Path::OnlyFileName(), operator+(), cmn_Path::operator+=(), df_Unpacker::ReadRecFile(), cmn_Path::RemoveTrailingPathSeparator(), fsc_FileExpiration::SetExpirationAge(), fsc_FileExpiration::SetExpirationAgeRecursive(), log_Debugger::SetProcName(), cmn_Path::UpPath(), and df_Packer::WriteRecFile().
| #define snprintf _snprintf |
Definition at line 140 of file windows.h.
Referenced by fsc_GetMediumKeyFSName(), fsc_GetMedVolNumFSName(), fsc_RawMedVolPathCollector::GetFileName(), fsc_MedVolume::GetMedVolFileName(), fio_JourFile::JourFileName(), and log_FunctionID::log_FunctionID().
| #define stn_WIN_EA "WIN.EA" |
Definition at line 77 of file cmn_File.h.
Referenced by GetAttrName(), GetAttrType(), and df_SplitInfoUnpacker::ProcRecEmbData().
| #define stn_WIN_LINK "WIN.LINK" |
| #define stn_WIN_OBJID "WIN.OBJID" |
| #define stn_WIN_PROPERTY "WIN.PROPERTY" |
| #define stn_WIN_REPARSE "WIN.REPARSE" |
| #define stn_WIN_SECURITY "WIN.SEC" |
File stream names/IDs.
Definition at line 76 of file cmn_File.h.
Referenced by GetAttrName(), and GetAttrType().
| #define stn_WIN_SPARSE "WIN.SPARSE" |
| #define strcasecmp | ( | s1, | |||
| s2 | ) | _stricmp(s1, s2) |
Definition at line 139 of file windows.h.
Referenced by cfg_RMDrive::ConvertGroup(), cfg_PMCfg::ConvertGroup(), cfg_Base::FindRule(), ivd_FindBitFlagByStr(), ivd_FindLiteralByStr(), main(), mif_CfgRep::ParseToFile(), mif_CfgRep::ReplaceHosts(), and val_Size::Validate().
| #define strncasecmp | ( | s1, | |||
| s2, | |||||
| count | ) | _strnicmp(s1, s2, count) |
| #define strtoll | ( | _s, | |||
| _e, | |||||
| _b | ) | _strtoi64(_s, _e, _b) |
| #define strtoull | ( | _s, | |||
| _e, | |||||
| _b | ) | _strtoui64(_s, _e, _b) |
| #define stt_ALTDATA 2 |
Definition at line 70 of file cmn_File.h.
Referenced by i_HSM_i::PackFile(), PackFile(), UnpackFile(), and i_HSM_i::UnPackFile().
| #define stt_DATA 1 |
Definition at line 69 of file cmn_File.h.
Referenced by cmn_File::GetStreamHeader(), i_HSM_i::PackFile(), PackFile(), hsm_FHADPRecall::RecallFileFromADP(), cmn_File::SetStreamHeader(), UnpackFile(), and i_HSM_i::UnPackFile().
| #define stt_META 3 |
Definition at line 71 of file cmn_File.h.
Referenced by i_HSM_i::PackFile(), PackFile(), hsm_IVDFSRecoverer::ProcRecBSStart(), UnpackFile(), and i_HSM_i::UnPackFile().
| #define stt_NONE 0 |
File stream types.
Definition at line 68 of file cmn_File.h.
Referenced by cmn_File::GetStreamHeader(), i_HSM_i::PackFile(), and PackFile().
| #define ToUInt64 | ( | _h, | |||
| _l | ) | ((static_cast<UInt64_t>(_h) << 32) | _l) |
Definition at line 85 of file cmn_File.h.
| #define UInt64ToFILETIME_m | ( | _ui, | |||
| _ft | ) |
Value:
_ft.dwLowDateTime = (DWORD)((_ui) & 0xffffffff);\
_ft.dwHighDateTime = (DWORD)((_ui) >> 32);
Definition at line 86 of file cmn_File.h.
Referenced by PrintFileTime().
| #define ULLONG_MAX (18446744073709551615ULL) |
| #define UTF8_TO_CONSOLE | ( | _str | ) | cmn_MultiByteToOEMString(_str) |
| #define UTF8_TO_CONSOLE | ( | _str | ) | (cmn_UTF8ToLocale(string(_str))) |
| #define UTF8_TO_CONSOLE | ( | _str | ) | (cmn_UTF8ToLocale(string(_str))) |
Definition at line 113 of file hpux.h.
Referenced by _tmain(), CheckRootMembersForEA(), i_UIMessageServer_i::DisplayDetail(), i_UIMessageServer_i::DisplayTable(), FileName2IPCFileList(), FileName2IPCStringList(), and InputFile2IPCFileList().
| #define WRONG_CHARS_IN_PATH "" |
| typedef vector<cmn_FileInfo_t> cmn_FileInfo_t_v |
Definition at line 330 of file ivdtypes.h.
| typedef vector<fname_inode_t> fname_inode_vec_t |
Definition at line 53 of file cmn_TreeWalk.h.
| typedef vector<fname_inode_vec_t> fname_inode_vec_vec_t |
Definition at line 66 of file cmn_TreeWalk.h.
| typedef UInt16_t hsm_ChgFlag_t |
Definition at line 306 of file ivdtypes.h.
| typedef UInt32_t ivd_BlockOffset_t |
Definition at line 129 of file ivdtypes.h.
| typedef UInt16_t ivd_CopyID_t |
Definition at line 133 of file ivdtypes.h.
| typedef UInt16_t ivd_DataType_t |
| typedef DIR* ivd_DirHandle_t |
Definition at line 44 of file ivdtypes.h.
| typedef size_t ivd_FileBufSize_t |
Definition at line 37 of file ivdtypes.h.
| typedef int ivd_FileHandle_t |
Definition at line 36 of file ivdtypes.h.
| typedef ivd_RecordIDX_t ivd_FileID_t |
Definition at line 93 of file ivdtypes.h.
| typedef off64_t ivd_FilePosition_t |
Definition at line 39 of file ivdtypes.h.
| typedef ssize_t ivd_FileRetSize_t |
Definition at line 38 of file ivdtypes.h.
| typedef off64_t ivd_FileSize_t |
Definition at line 40 of file ivdtypes.h.
| typedef UInt64_t ivd_GenInode_t |
Definition at line 142 of file ivdtypes.h.
| typedef UInt32_t ivd_Inode_t |
Definition at line 141 of file ivdtypes.h.
| typedef UInt32_t ivd_MediaKey_t |
Definition at line 128 of file ivdtypes.h.
| typedef UInt32_t ivd_MedVolNum_t |
Type of fileio record index.
It's 32 bit long, but can be extended to 64 bit in the future. In that case all unused vector list inside fileio lib must be updated.
Definition at line 127 of file ivdtypes.h.
| typedef UInt64_t ivd_MigrationID_t |
Definition at line 131 of file ivdtypes.h.
| typedef UInt32_t ivd_PartitionID_t |
Definition at line 92 of file ivdtypes.h.
| typedef UInt32_t ivd_RecordIDX_t |
Definition at line 91 of file ivdtypes.h.
| typedef UInt8_t ivd_RelFileID_t |
Definition at line 96 of file ivdtypes.h.
| typedef struct stat ivd_Stat_t |
Definition at line 33 of file ivdtypes.h.
| typedef pthread_t ivd_ThreadID_t |
Definition at line 32 of file ivdtypes.h.
| typedef time_t ivd_Time32_t |
Definition at line 41 of file ivdtypes.h.
| typedef UInt64_t ivd_Time_t |
Definition at line 85 of file ivdtypes.h.
| typedef int ivd_TransactionID_t |
Definition at line 98 of file ivdtypes.h.
| typedef UInt16_t ivd_VectorSize_t |
Definition at line 94 of file ivdtypes.h.
| typedef vector<stx_CacheVec>::iterator stx_Cache_i |
Definition at line 106 of file stx_Cache.h.
| typedef UInt64_t stx_CacheKey_t |
| typedef vector<stx_CacheEl*>::iterator stx_CacheVec_i |
Definition at line 78 of file stx_Cache.h.
| enum cmn_Lock_e |
Definition at line 26 of file cmn_lockidbyown.h.
00026 { 00027 eNotLocked = 0, 00028 eLocked, 00029 eLckSameOwn, 00030 eLckOtherOwn 00031 } cmn_Lock_e;
| enum ivd_ByteOrder_e |
Definition at line 144 of file ivdtypes.h.
00144 { 00145 ibo_ENDIAN_LITTLE = 1, 00146 ibo_ENDIAN_BIG = 2 00147 } ivd_ByteOrder_e;
| enum ivd_CommonArg_e |
Definition at line 158 of file ivdtypes.h.
00158 { 00159 ica_NO_CMN_ARG = 0, // no common argument specified 00160 ica_HELP = 1, // --help specified 00161 ica_NODAEMON = 2 // --no-daemon specified 00162 } ivd_CommonArg_e;
| enum ivd_FileState_e |
Definition at line 150 of file ivdtypes.h.
00150 { 00151 ifs_NOSTATE = 0, // file undefined state 00152 ifs_FORMIGRATION = 1, // file prepared for migration - to check policies 00153 ifs_DOMIGRATION = 2, // file is migrated to first level (disk or memory cache) 00154 ifs_MIGRATED = 3 // file is on the tape 00155 } ivd_FileState_e;
| enum ivd_FileType_e |
File type - platform independant type (should cover all platforms).
Definition at line 202 of file ivdtypes.h.
00202 { 00203 ift_UNKNOWN = 0, // unknown type (probably regular file) 00204 ift_FILE = 1, // regular file 00205 ift_DIR = 2, // directory 00206 ift_CHR_DEV = 3, // character device file (UX only) 00207 ift_BLK_DEV = 4, // block device file (UX only) 00208 ift_FIFO = 5, // FIFO pipe (UX only) 00209 ift_SYMLINK = 6, // symbolic link (UX only) 00210 ift_SOCKET = 7 // UNIX domain socket (UX only) 00211 } ivd_FileType_e;
| enum ivd_ShowFlags_e |
What information user need.
Flags are passed to some CORBA interface as i_BitFlag_t by cli. Each object decide what information will show.
Definition at line 168 of file ivdtypes.h.
00168 { 00169 isf_DETAIL = 1 << 0, 00170 isf_VERBOSE = 1 << 1, 00171 isf_SH_DIRTY = 1 << 2, 00172 isf_SH_MIG_CAN = 1 << 3, 00173 00174 isf_SENTINEL = 0x03 00175 } ivd_ShowFlags_e;
Definition at line 782 of file cmn_File_LNX.cpp.
References cmn_CopyFile(), errno, fom_CREATE_ALWAYS, fom_READ_MODE_d, fom_WRITE, cmn_File::GetFullPathRef(), log_FUNC_m, cmn_File::OpenF(), cmn_File::ReadF(), and cmn_File::WriteF().
Referenced by cmn_CopyFile(), cmn_MoveFile(), RevertUpdate(), and Update().
00782 { 00783 log_FUNC_m(cmn_CopyFile); 00784 00785 const int buffSize = 0x4000; // 16k buffer 00786 vector<char> buffer; 00787 buffer.resize(buffSize); 00788 char *buff_p = &buffer[0]; 00789 00790 cmn_File sourf(a_source); 00791 cmn_File destf(a_destination); 00792 sourf.OpenF(fom_READ_MODE_d); 00793 destf.OpenF(fom_WRITE | fom_CREATE_ALWAYS); 00794 00795 int read = sourf.ReadF(buff_p, buffSize); 00796 if (read == -1) { 00797 int lastError = errno; 00798 00799 ostringstream sstr; 00800 sstr << " read(" << a_source << ")"; 00801 00802 throw ivd_SysError(lastError, sstr.str(), true); 00803 } 00804 00805 while (read > 0) { 00806 int written = destf.WriteF(buff_p, read); 00807 if (written < read) { 00808 ostringstream sstr; 00809 sstr << "Write to " << destf.GetFullPathRef() << ", size " << read << 00810 ", but write only " << written; 00811 throw ivd_SysError(ENOSPC, sstr.str(), true); 00812 } 00813 read = sourf.ReadF(buff_p, buffSize); 00814 } 00815 }


| void IVD_CMN_DECL_d cmn_DaemonInit | ( | ) |
Daemonize currect process: fork() another process and continute execution in that process, while parent process exit() immedeatelly.
After successful return of this function, you will be running in deamon. Function disconnects from the control terminal, sets working directory to root (/) and resets umask.
Definition at line 225 of file cmn_proc_LNX.cpp.
References cmn_DaemonInit(), dbg_DETAIL, errno, g_cmn, log_DBG_m, log_FUNC_m, pid_t, cmn_SysInfo::RefreshPid(), and cmn_Global::si.
Referenced by cmn_DaemonInit(), and main().
00225 { 00226 00227 log_FUNC_m(cmn_DaemonInit); 00228 00229 pid_t pid = fork(); 00230 00231 if (pid == -1) 00232 throw ivd_SysError(errno, "fork()", true); 00233 00234 // Parent process should go down 00235 if (pid != 0) { 00236 log_DBG_m(dbg_DETAIL, "Deamon forked, pid=" << pid); 00237 exit(0); 00238 } 00239 00240 // new process should be started in own session 00241 if (setsid() == -1) 00242 throw ivd_SysError(errno, "setsid()", true); 00243 00244 // ensure that we are not on mounted directory 00245 if (chdir("/") == -1) 00246 throw ivd_SysError(errno, "chdir(\"/\")", true); 00247 00248 // ensure that umask will not impact file permissions 00249 umask(0); // umask() always succeeds 00250 00251 // set new PID in system info structure 00252 g_cmn.si.RefreshPid(); 00253 }


| int IVD_CMN_DECL_d cmn_ExecCommand | ( | const string | a_cmd, | |
| vector< string > & | a_args, | |||
| const UInt32_t | a_flags, | |||
| void(*)() | a_outcb | |||
| ) |
Execute command: specified command is executed with specifed arguments.
| a_cmd | Command to start (full pathname required) | |
| a_args | Command arguments | |
| a_flags | Flags (wait exit code, redirect output...) | |
| a_outcb | stdout/stderr callback (to receive cmd output) |
The functionality for ignoring the exit code (start-and-forget) is currently not implemented.
| a_cmd | Command to start (full pathname required) | |
| a_args | Command arguments | |
| a_flags | Flags (wait exit code, redirect output...) | |
| a_outcb | stdout/stderr callback (to receive cmd output) |
Definition at line 119 of file cmn_proc_LNX.cpp.
References cmn_EXEC_GET_STDERR, cmn_EXEC_GET_STDOUT, cmn_EXEC_WAIT, cmn_ExecCommand(), cmn_ExecInChildProcess(), dbg_EXTAPI, dbg_LOW, dbg_NORM, errno, FALSE, ie_INVALID_ARG, ie_PROCESS, ivd_Error, log_DBG_m, log_FUNC_A_m, NULL, pid_t, WEXITSTATUS, WIFSIGNALED, and WIFSTOPPED.
Referenced by cmn_ExecCommand(), i_Service_i::Execute(), i_Service_i::ExecutePy(), ivd_DD::Run(), SendEmail(), and SendMsg().
00120 { 00121 00122 log_FUNC_A_m( 00123 cmn_ExecCommand, 00124 "cmd=" << a_cmd << ", #arg=" << a_args.size() << 00125 ", a_flags=0x" << hex << a_flags << ", a_outcb=" << a_outcb 00126 ); 00127 00128 if (!(a_flags & cmn_EXEC_WAIT) 00129 && (a_flags & (cmn_EXEC_GET_STDOUT|cmn_EXEC_GET_STDERR))) { 00130 throw ivd_InternalError(ie_INVALID_ARG, "No wait, but want output!"); 00131 } 00132 00133 if ((a_flags & (cmn_EXEC_GET_STDOUT|cmn_EXEC_GET_STDERR)) 00134 && a_outcb == NULL) { 00135 throw ivd_InternalError(ie_INVALID_ARG, "No callback specified!"); 00136 } 00137 00138 pid_t pid(-1); 00139 int status(-1); 00140 { 00141 static cmn_Mutex fork_x; 00142 cmn_MutexLock l(fork_x); 00143 00144 static bool initialised(false); 00145 if (!initialised) { 00146 initialised = true; 00147 struct sigaction action; 00148 memset(&action, 0, sizeof(action)); 00149 action.sa_handler = SIG_DFL; 00150 sigemptyset(&action.sa_mask); 00151 action.sa_flags = SA_NOCLDSTOP; 00152 if (sigaction(SIGCHLD, &action, NULL) == -1) { 00153 throw ivd_SysError(errno, "sigaction(SIGCHLD)", true); 00154 } 00155 } 00156 00157 pid = fork(); 00158 if (pid == -1) { 00159 throw ivd_SysError(errno, "fork()", true); 00160 } 00161 00162 if (pid == 0) { 00163 // ==> Child process 00164 try { 00165 cmn_ExecInChildProcess(a_cmd, a_args, a_flags); 00166 } 00167 catch (...) { 00168 // if we have returned here, something did not worked as expected 00169 // Error already logged. 00170 ::exit(255); 00171 } 00172 ::exit(0); 00173 } 00174 } 00175 00176 // ==> Parent process 00177 00178 log_DBG_m(dbg_NORM, 00179 "%% Parent: Child started, PID=" << pid << ", cmd=" << a_cmd); 00180 00181 pid_t result = waitpid(pid, &status, 0); 00182 log_DBG_m(dbg_EXTAPI, "%% Parent: After waitpid() == " << result); 00183 00184 if (result == -1) { 00185 throw ivd_SysError(errno, "waitpid()", true); 00186 } 00187 00188 if (!(a_flags & cmn_EXEC_WAIT)) { 00189 log_DBG_m(dbg_NORM, "%% Parent: No waiting, returning pid=" << pid); 00190 return pid; 00191 } 00192 00193 if (WIFSIGNALED(status)) { 00194 ostringstream sstr; 00195 sstr << "Child process terminated abnormally. pid = " << pid; 00196 throw ivd_Error(ie_PROCESS, sstr.str()); 00197 } 00198 if (WIFSTOPPED(status)) { 00199 ostringstream sstr; 00200 sstr << "Child process is stopped. pid = " << pid; 00201 throw ivd_Error(ie_PROCESS, sstr.str()); 00202 } 00203 00204 int ret = WEXITSTATUS(status); 00205 00206 log_DBG_m( 00207 dbg_NORM, 00208 "%% Parent: Child exited, pid=" << pid << ", cmd=" << a_cmd << 00209 ", code=" << ret; 00210 ); 00211 return ret; 00212 }


| cmn_Path IVD_CMN_DECL_d cmn_GetCurrentDir | ( | ) |
Definition at line 162 of file cmn_Dir_LNX.cpp.
References cmn_GetCurrentDir(), errno, IVD_MAX_PATH, log_FUNC_m, NULL, and path.
Referenced by cmn_GetCurrentDir(), and cmn_Path::GetAbsolutePathName().
00162 { 00163 log_FUNC_m(GetCurrentDir); 00164 char path[PATH_MAX]; 00165 char *name = getcwd(path, PATH_MAX); 00166 00167 if (name == NULL) { 00168 throw ivd_SysError(errno, "getcwd() returned error."); 00169 } 00170 00171 return cmn_Path(name); 00172 }


| IVD_CMN_DECL_d string cmn_LocaleToUTF8 | ( | const string & | a_locale | ) |
Definition at line 45 of file cmn_utf8.cpp.
References cmn_Global::conv, cmn_UTF8Converter::ConvertToUTF8(), and g_cmn.
Referenced by cmn_Path::GetAbsolutePathName(), cmn_FastDirLst::GetNextName(), GetPathList(), cfg_CliBase::LocaleToUTF8Argv(), and cmn_File::ReadLink().
00045 { 00046 return g_cmn.conv.ConvertToUTF8(a_locale); 00047 }


Definition at line 818 of file cmn_File_LNX.cpp.
References cmn_CopyFile(), cmn_FileNameToLong(), cmn_MoveFile(), cmn_MultiByteToWString(), cmn_UTF8ToLocale(), dbg_NORM, cmn_File::DeleteFile(), errno, log_DBG_m, and log_FUNC_m.
Referenced by cmn_MoveFile(), bea_FRI::MoveFromWorkToFRI(), hsm_IVDFSRecoverer::ProcRecFileHdr(), RenameToBadFile(), RevertUpdate(), bea_FRI::SaveFRIOnError(), and Update().
00818 { 00819 log_FUNC_m(cmn_MoveFile); 00820 00821 // Convert file names from UTF8 to locale 00822 string csSrc(cmn_UTF8ToLocale(a_src)); 00823 string csDest(cmn_UTF8ToLocale(a_dest)); 00824 00825 int ret = rename(csSrc.c_str(), csDest.c_str()); 00826 00827 if (ret == -1) { 00828 int lastError = errno; 00829 00830 if (lastError == EXDEV) { 00831 log_DBG_m(dbg_NORM, "Moving from one FS to another. Using copy/detele."); 00832 cmn_CopyFile(a_src, a_dest); 00833 cmn_File::DeleteFile(a_src); 00834 } 00835 else { 00836 ostringstream sstr; 00837 sstr << " rename(" << a_src << ", " << a_dest << ")"; 00838 00839 throw ivd_SysError(lastError, sstr.str(), true); 00840 } 00841 } 00842 }


| void IVD_CMN_DECL_d cmn_SetCurrentDir | ( | const string & | a_name | ) |
Definition at line 175 of file cmn_Dir_LNX.cpp.
References cmn_SetCurrentDir(), dbg_NORM, errno, IVD_MAX_PATH, log_DBG_m, and log_FUNC_m.
Referenced by cmn_SetCurrentDir().
00175 { 00176 log_FUNC_m(SetCurrentDir); 00177 int ret = chdir(a_name.c_str()); 00178 if (ret == -1) { 00179 throw ivd_SysError(errno, string("chdir(") + a_name + string(")") ); 00180 } 00181 }


| IVD_CMN_DECL_d string cmn_UTF8ToLocale | ( | const string & | a_utf8 | ) |
Definition at line 49 of file cmn_utf8.cpp.
References cmn_Global::conv, cmn_UTF8Converter::ConvertFromUTF8(), and g_cmn.
Referenced by cmn_CreatePath(), cmn_MoveFile(), cmn_File::DeleteDir(), cmn_File::DeleteFile(), ivd_FS_File::IsOfflineProlonged(), ivd_GetFsAttr(), ivd_SetFsAttr(), hsm_IVDFSRecoverer::ProcRecFileHdr(), cmn_File::ReadLink(), cmn_File::SetFullPath(), ivd_FS_File::SetStatAttr(), and cmn_File::SymLink().
00049 { 00050 return g_cmn.conv.ConvertFromUTF8(a_utf8); 00051 }


Definition at line 34 of file ivdbswap.h.
Referenced by df_FRI::BlockWritten(), cdb_Locate::cdb_Locate(), cdb_LogSelect::cdb_LogSelect(), cdb_LogSense::cdb_LogSense(), cdb_ReadAttribute::cdb_ReadAttribute(), cdb_ReportDensity::cdb_ReportDensity(), cdb_WriteAttribute::cdb_WriteAttribute(), df_FRIDistiller::CopyRecord(), df_Filter::CopyRecord(), data_Log::data_Log(), data_Attribute::FindAttrID(), fsc_nsFSrecovery::FlushBlock(), df_Writer::FlushBlock(), data_Log::GetParam(), df_TCMMediaVolume_t::HostToNet(), df_TCMMedium_t::HostToNet(), hton24(), data_Attribute::Init(), df_Packer::MakeSpaceForData(), df_FRI::MediumVolumeStart(), ntoh(), data_ElementStatus::ParseElemStatus(), df_Filter::ProcRecBSEnd(), df_Filter::ProcRecBSStart(), data_Attribute::SetAvailableData(), cdb_Locate::SetBlockNum(), cdb_MoveMedium::SetDestination(), cdb_ReadElementStatus::SetElementNum(), data_Mode::SetPartitions(), cdb_MoveMedium::SetSource(), cdb_ReadElementStatus::SetStartAddr(), cdb_MoveMedium::SetTransport(), data_Log::UpdateMICNoteSize(), df_BlockProxyWriter::WriteBlockHeader(), df_Packer::WriteRecBSEndRaw(), df_Packer::WriteRecBSStart(), df_Packer::WriteRecCmnRaw(), df_Packer::WriteRecFile(), df_Packer::WriteRecFileEnd(), df_Packer::WriteRecFileEndRaw(), df_Packer::WriteRecFRIEnd(), df_Packer::WriteRecFRISplitInfo(), df_Packer::WriteRecFRIStart(), and df_Packer::WriteRecMedVolHdr().
00034 { 00035 00036 #if IVD_ENDIAN_LITTLE 00037 #if TGT_OS_linux 00038 UInt64_t netll = a_hostll; 00039 return bswap_64(netll); 00040 #else 00041 union Split64_t { 00042 UInt64_t a; 00043 UInt32_t b[2]; 00044 }; 00045 00046 register Split64_t netll; 00047 netll.a = a_hostll; 00048 00049 register UInt32_t x = netll.b[0]; 00050 netll.b[0] = htonl(netll.b[1]); 00051 netll.b[1] = htonl(x); 00052 return netll.a; 00053 #endif 00054 #else 00055 // Big endian computer 00056 return a_hostll; 00057 #endif 00058 00059 }

Definition at line 83 of file ivdbswap.h.
References hton().
Referenced by cdb_Read::cdb_Read(), cdb_ReadElementStatus::cdb_ReadElementStatus(), cdb_Space::cdb_Space(), cdb_Write::cdb_Write(), cdb_WriteFileMarks::cdb_WriteFileMarks(), data_ElementStatus::GetReportSize(), data_ElementStatus::ParseElemStatus(), cdb_Write::SetBuffer(), and cdb_Read::SetBuffer().
00083 { 00084 #if IVD_ENDIAN_LITTLE 00085 register UInt32_t n24 = hton(a_hostll & 0x00FFFFFF); 00086 return (n24 >> 8); 00087 #else 00088 return a_hostll; 00089 #endif 00090 }


| void ivd_ThrowNullChk | ( | const string | a_type | ) | [inline] |
Definition at line 267 of file ivderror.h.
References errno.
00267 { 00268 throw ivd_SysError(errno, "Cannot reserve memory for " + a_type, true); 00269 }
Definition at line 61 of file ivdbswap.h.
References hton().
Referenced by df_FRI::BlockWritten(), fsc_nsElement::CheckLastGen(), df_FRIDistiller::CopyRecord(), df_Filter::CopyRecord(), fsc_VolumeCheck::DisplayMessage(), DumpBSEnd(), DumpBSStart(), DumpEmbData(), DumpFile(), DumpFileEnd(), Ea(), data_Attribute::FindAttrID(), df_RecReader::FRIEndCheck(), data_Attribute::GetAttributeListLength(), df_Unpacker::GetBSData(), data_Density::GetCapacity(), data_Density::GetDensityCount(), fsc_nsElement::GetFileSize(), data_Attribute::GetMamCapacity(), data_Attribute::GetMamFreeSpace(), data_Density::GetMediaWidth(), data_Log::GetMICAvailSize(), data_Log::GetMICNoteLength(), data_Log::GetMICNoteSize(), df_BlockScanner::GetNextRecord(), df_RecReader::GetNextRecord(), data_Mode::GetPartSize(), data_Position::GetPosition(), scsi_IO::GetReadDifference(), data_Log::GetRemainingPartCap(), data_Log::GetSize(), data_Log::GetTotalPartCap(), data_Density::GetTracks(), df_RecCmn_t::GetVarDataNet(), df_BlockProxy::IsBlockHeaderPresent(), Mamdetect(), df_FRI::MediumVolumeStart(), df_StandardAttr_t::NetToHost(), df_TCMMediaVolume_t::NetToHost(), df_TCMMedium_t::NetToHost(), ntoh24(), operator<<(), ParseBlock(), df_BlockProxy::ParseBlockHeader(), ParseBSEnd(), ParseBSStart(), ParseECMAHeader(), data_ElementStatus::ParseElemStatus(), ParseEmbData(), ParseFile(), ParseFileEnd(), ParseFRIEnd(), ParseFRISpInfo(), ParseFRIStart(), ParseMICVolNote(), df_RecReader::PositionToRecord(), df_RecReader::PrepareDataStreamUnpacker(), df_SplitInfoUnpacker::ProcRecBSEnd(), df_FRIDistiller::ProcRecBSEnd(), df_Filter::ProcRecBSEnd(), hsm_Recall::ProcRecBSStart(), hsm_IVDFSRecoverer::ProcRecBSStart(), df_SplitInfoUnpacker::ProcRecBSStart(), df_FRIDistiller::ProcRecBSStart(), df_Filter::ProcRecBSStart(), hsm_Recall::ProcRecEmbData(), hsm_IVDFSRecoverer::ProcRecEmbData(), df_SplitInfoUnpacker::ProcRecEmbData(), df_FRIDistiller::ProcRecEmbData(), df_Filter::ProcRecEmbData(), df_SplitInfoUnpacker::ProcRecFileEnd(), df_FRIDistiller::ProcRecFileEnd(), df_Filter::ProcRecFileEnd(), hsm_Recall::ProcRecFileHdr(), hsm_IVDFSRecoverer::ProcRecFileHdr(), df_SplitInfoUnpacker::ProcRecFileHdr(), df_FRIDistiller::ProcRecFileHdr(), df_Filter::ProcRecFileHdr(), df_SplitInfoUnpacker::ProcRecFRIEnd(), df_SplitInfoUnpacker::ProcRecFRISpInfo(), la_SCSILibrary::ReadElementAssignment(), bea_FRI::ReadFRIStart(), df_Unpacker::ReadRecBSEnd(), df_Unpacker::ReadRecBSStart(), df_Unpacker::ReadRecFile(), df_Unpacker::ReadRecFileEnd(), bea_Volume::ReadVolInfoFromHeader(), scsi_GetSenseText(), df_BlockScanner::SetBlock(), df_RecReader::Unpack(), df_BlockProxy::VerifiedBlock(), df_RecReader::VerifiedRecCmn(), df_BlockProxy::VerifyBlockHeader(), and df_RecReader::VerifyRecHeader().
00061 { 00062 // Just call the above function. ntoh and hton do the same 00063 // thing! 00064 return hton(a_netll); 00065 }

Definition at line 92 of file ivdbswap.h.
References ntoh().
Referenced by data_Density::GetBitsPerMM(), and data_ElementStatus::ParseElemStatus().
00092 { 00093 #if IVD_ENDIAN_LITTLE 00094 register UInt32_t h24 = ntoh(a_netll & 0x00FFFFFF); 00095 return (h24 >> 8); 00096 #else 00097 return a_netll; 00098 #endif 00099 }


| IVD_CMN_DECL_d ostream& operator<< | ( | ostream & | a_ostream, | |
| const cmn_UUID_t & | a_uuid | |||
| ) |
Definition at line 204 of file cmn_uuid.cpp.
References cmn_UUID_t::ToString().
00204 { 00205 a_ostream << a_uuid.ToString(); 00206 return a_ostream; 00207 }

| ostream& operator<< | ( | ostream & | os, | |
| const fname_inode_vec_t & | fv | |||
| ) |
Definition at line 42 of file cmn_TreeWalk.cpp.
00043 { 00044 os << "fname_inode_vec_t(" << endl; 00045 os << (UInt32_t)fv.size() << endl; 00046 for(fname_inode_vec_t::const_iterator i = fv.begin(); i != fv.end(); i++) 00047 os << i->m_name << endl 00048 << i->m_iNode << endl 00049 << (int)i->m_fileType << endl; 00050 os << ")" << endl; 00051 return os; 00052 }
| istream& operator>> | ( | istream & | is, | |
| fname_inode_vec_t & | fv | |||
| ) |
| const UInt32_t cmn_MAX_UTF8_CHAR_SIZE_c |
Referenced by cmn_UTF8Converter::ConvertToUTF8().
| IVD_CMN_DECL_d cmn_Global g_cmn |
Definition at line 29 of file cmn_internal.cpp.
Referenced by _tmain(), i_ManagementInterface_i::AddMediumToPool(), blk_DiskFRIReader::blk_DiskFRIReader(), i_PartitionManager_i::BuildExpirationTree(), i_HSM_i::ChangeLogLevel(), log_Debugger::ChangeParams(), log_EventLog::ChangeQualifier(), bea_MigrationThread::CheckFRI(), pm_JobMgr::CheckFSCvsIVDFS(), i_HSM_i::CheckFSCvsIVDFS(), i_MaintFriJob_i::CheckReadFri(), rm_DiskBuffer::Clear(), CliConnectToHSM(), CliConnectToMIF(), bea_TapeDrive::Close(), bea_DiskDrive::Close(), i_BackEndAgent_i::CloseMediumVolume(), bea_FRI::CloseVolume(), cmn_DaemonInit(), cmn_GetComponentName(), cmn_LocaleToUTF8(), cmn_UTF8ToLocale(), bea_FRI::CreateFRI(), cmn_File::CreatePipe(), dbg_GetFlags(), dbg_GetLevel(), dbg_IsActive(), dbg_Off(), dbg_On(), dbg_SetArgs(), dbg_SetExternalDebugger(), dbg_SetFlags(), dbg_SetLevel(), dbg_SetProcName(), i_Service_i::DeleteFile(), i_AdminJob_i::DetectVolumeHeader(), rm_DiskBufAllocator::DetectVolumes(), i_ManagementInterface_i::DisableDebug(), i_HSM_i::DoMigrationJob(), i_ManagementInterface_i::EnableDebug(), hsm_FileHeader::EventOffline(), i_Service_i::Execute(), i_ReorgScanJob_i::Execute(), i_MigrationJob_i::Execute(), i_ManagementInterface_i::FileHistory(), ivd_BaseException::FormatText(), fsc_GetDir(), fsc_GetRedunCopyDir(), fsc_GetReorgDir(), log_EventLogger::GetComponent(), bea_DiskMedium::GetDiskMediumPath(), fsc_RawMedVolPathCollector::GetFileName(), i_MaintFriJob_i::GetFRI(), fsc_nsElement::GetFullPath(), log_EventLogger::GetHeader(), log_ErrorStream::GetHeader(), i_HSM_i::GetInfo(), i_Component_i::GetVersion(), ut_Group::Header(), cfg_Cli_hsm::HelpDump(), HsmApiEnableDebug(), i_BackEndAgent_i::i_BackEndAgent_i(), i_BackupAgent_i::i_BackupAgent_i(), i_DownloadAgent_i::i_DownloadAgent_i(), i_ManagementInterface_i::i_ManagementInterface_i(), i_MediumCheckJob_i::i_MediumCheckJob_i(), i_ResourceManager_i::i_ResourceManager_i(), i_RestoreAgent_i::i_RestoreAgent_i(), i_UploadAgent_i::i_UploadAgent_i(), log_ivdfs::Init(), ipc_Corba::Init(), bea_Volume::Init(), i_AdminJob_i::InitializeSingleVolume(), i_ReorgJob_i::InitializeVolumes(), fsc_DataL::Insert(), IsFileOffline(), ivd_FileSystemAPI::ivd_FileSystemAPI(), ivd_ParseCmnArgs(), i_ManagementInterface_i::ListDrives(), cfg_CliBase::LocaleToUTF8Argv(), log_ErrorStream::log_ErrorStream(), log_EventLog::log_EventLog(), log_FunctionTracer::log_FunctionTracer(), log_Output(), log_Stack::log_Stack(), log_WriteEvent(), main(), i_EfficientRecallJob_i::MediumOperationComplete(), df_FRI::MediumVolumeClosed(), bea_MigrationThread::Migrate(), hsm_JobListMgr::MigrateFailedJob(), bea_FRI::MoveFromWorkToFRI(), bea_Volume::MustDumpFRI(), nsc_ScanForIVDFSRecovery(), log_Debugger::Off(), log_Debugger::On(), la_SCSILibrary::Open(), bea_TapeDrive::Open(), bea_DiskDrive::Open(), blk_DiskFRIWriter::OpenFRIFile(), operator<<(), i_HSM_i::PackFile(), i_PartitionManager_i::ParseConfig(), i_ResourceManager_i::ParsePMConfig(), cmn_SysInfo::ParseServices(), i_MaintFriJob_i::PrepareVolumes(), PrintUsage(), i_RecoveryJob_i::ProcessFRI(), i_MediumCheckJob_i::ProcessFRI(), i_LibraryAgentSCSI_i::ReadDriveInfo(), bea_DupReadThread::ReadMedVolume(), ReadRefFromFile(), fio_uvListMgr::ReadUV(), rm_Queue::Recalc(), i_HSM_i::Recall(), i_ManagementInterface_i::RecallFile(), cfg_CliBase::Refresh(), bea_DiskMedium::Refresh(), ipc_Corba::RegisterFSEvtMgr(), ipc_Corba::RegisterLA(), ipc_Corba::RegisterMIF(), ipc_Corba::RegisterPMByPMID(), ipc_Corba::RegisterSvc(), rm_PartitionStatus::Release(), i_Job_i::ReleaseDiskBuffer(), rm_SysState::ReleaseSys(), i_ManagementInterface_i::RemovePartition(), rm_DiskBuffer::ReportContent(), rm_PartitionStatus::Reserve(), rm_SysState::ReserveSys(), rm_DiskBuffer::rm_DiskBuffer(), FSEvMgrThrd::Run(), pm_RecallClientThread::Run(), ivd_DD::Run(), hsm_FHmigc::Run(), RunOmniNames(), bea_FRI::SaveFRIOnError(), hsm_FHmigc::SendToPM(), ServerLoop(), i_Job_i::SetDriveProperties(), log_Debugger::SetFileName(), log_EventLogger::SetNewPath(), log_ErrorStream::SetNewPath(), mif_CfgRep::SetPath(), api_Partition::SetReferences(), bea_FRIThread::SetWorkDir(), i_HSM_i::ShowStatus(), SimulateMediumError(), SimulateUVStructureError(), mif_PartMgr::StartPM(), Suspend(), i_ManagementInterface_i::TrigMigration(), rm_SysState::UnRegisterPM(), Update(), rm_SysState::UpdatePM(), i_ManagementInterface_i::UpdatePool(), Usage(), i_BackEndAgent_i::UseResources(), log_EventLogger::Write(), fsc_DataL::Write2DB(), log_Debugger::WriteHeader(), bea_DupWriteThread::WriteMedVolume(), WriteRefToFile(), i_MediumDupl_i::~i_MediumDupl_i(), i_RedundantCopyJob_i::~i_RedundantCopyJob_i(), log_FunctionTracer::~log_FunctionTracer(), and log_Stack::~log_Stack().
1.5.6