Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

lfsdisk.h File Reference

Go to the source code of this file.

Classes

struct  _LFS_CLIENT_ID
struct  _LFS_RECORD_HEADER
struct  _LFS_UNPACKED_RECORD_PAGE
struct  _LFS_PACKED_RECORD_PAGE
struct  _LFS_RECORD_PAGE_HEADER
struct  _LFS_RESTART_PAGE_HEADER
struct  _LFS_CLIENT_RECORD
struct  _LFS_RESTART_AREA
struct  _LFS_OLD_RESTART_AREA

Defines

#define MINIMUM_LFS_PAGES   0x00000030
#define MINIMUM_LFS_CLIENTS   1
#define UpdateSequenceStructureSize(MSH)   ((((PMULTI_SECTOR_HEADER) (MSH))->UpdateSequenceArraySize - 1) * SEQUENCE_NUMBER_STRIDE)
#define UpdateSequenceArraySize(STRUCT_SIZE)   ((STRUCT_SIZE) / SEQUENCE_NUMBER_STRIDE + 1)
#define FIRST_STRIDE   (SEQUENCE_NUMBER_STRIDE - sizeof( UPDATE_SEQUENCE_NUMBER ))
#define LOG_RECORD_MULTI_PAGE   (0x0001)
#define LFS_RECORD_HEADER_SIZE   QuadAlign( sizeof( LFS_RECORD_HEADER ))
#define LOG_PAGE_LOG_RECORD_END   (0x00000001)
#define LFS_UNPACKED_RECORD_PAGE_HEADER_SIZE
#define LFS_PACKED_RECORD_PAGE_HEADER_SIZE
#define LFS_RESTART_PAGE_HEADER_SIZE
#define LFS_SIGNATURE_RESTART_PAGE   "RSTR"
#define LFS_SIGNATURE_RESTART_PAGE_ULONG   0x52545352
#define LFS_SIGNATURE_RECORD_PAGE   "RCRD"
#define LFS_SIGNATURE_RECORD_PAGE_ULONG   0x44524352
#define LFS_SIGNATURE_BAD_USA   "BAAD"
#define LFS_SIGNATURE_BAD_USA_ULONG   0x44414142
#define LFS_SIGNATURE_MODIFIED   "CHKD"
#define LFS_SIGNATURE_MODIFIED_ULONG   0x444b4843
#define LFS_SIGNATURE_UNINITIALIZED   "\377\377\377\377"
#define LFS_SIGNATURE_UNINITIALIZED_ULONG   0xffffffff
#define LFS_NO_CLIENT   0xffff
#define LFS_CLIENT_NAME_MAX   64
#define RESTART_SINGLE_PAGE_IO   (0x0001)
#define LFS_RESTART_AREA_SIZE   (FIELD_OFFSET( LFS_RESTART_AREA, LogClientArray ))

Typedefs

typedef _LFS_CLIENT_ID LFS_CLIENT_ID
typedef _LFS_CLIENT_IDPLFS_CLIENT_ID
typedef _LFS_RECORD_HEADER LFS_RECORD_HEADER
typedef _LFS_RECORD_HEADERPLFS_RECORD_HEADER
typedef _LFS_UNPACKED_RECORD_PAGE LFS_UNPACKED_RECORD_PAGE
typedef _LFS_UNPACKED_RECORD_PAGEPLFS_UNPACKED_RECORD_PAGE
typedef _LFS_PACKED_RECORD_PAGE LFS_PACKED_RECORD_PAGE
typedef _LFS_PACKED_RECORD_PAGEPLFS_PACKED_RECORD_PAGE
typedef _LFS_RECORD_PAGE_HEADER LFS_RECORD_PAGE_HEADER
typedef _LFS_RECORD_PAGE_HEADERPLFS_RECORD_PAGE_HEADER
typedef _LFS_RESTART_PAGE_HEADER LFS_RESTART_PAGE_HEADER
typedef _LFS_RESTART_PAGE_HEADERPLFS_RESTART_PAGE_HEADER
typedef _LFS_CLIENT_RECORD LFS_CLIENT_RECORD
typedef _LFS_CLIENT_RECORDPLFS_CLIENT_RECORD
typedef _LFS_RESTART_AREA LFS_RESTART_AREA
typedef _LFS_RESTART_AREAPLFS_RESTART_AREA
typedef _LFS_OLD_RESTART_AREA LFS_OLD_RESTART_AREA
typedef _LFS_OLD_RESTART_AREAPLFS_OLD_RESTART_AREA


Define Documentation

#define FIRST_STRIDE   (SEQUENCE_NUMBER_STRIDE - sizeof( UPDATE_SEQUENCE_NUMBER ))
 

Definition at line 45 of file lfsdisk.h.

Referenced by LfsIsClientAreaValid(), and LfsIsRestartAreaValid().

#define LFS_CLIENT_NAME_MAX   64
 

Definition at line 356 of file lfsdisk.h.

Referenced by LfsOpenLogFile().

#define LFS_NO_CLIENT   0xffff
 

Definition at line 355 of file lfsdisk.h.

Referenced by LfsAddClientToList(), LfsCloseLogFile(), LfsFindOldestClientLsn(), LfsIsClientAreaValid(), LfsIsRestartAreaValid(), LfsOpenLogFile(), LfsReadRestart(), LfsRemoveClientFromList(), LfsRestartLogFile(), and LfsUpdateRestartAreaFromLfcb().

#define LFS_PACKED_RECORD_PAGE_HEADER_SIZE
 

Value:

( \ FIELD_OFFSET( LFS_RECORD_PAGE_HEADER, Header.Packed.UpdateSequenceArray ) \ )

Definition at line 259 of file lfsdisk.h.

Referenced by LfsUpdateLfcbFromPgHeader().

#define LFS_RECORD_HEADER_SIZE   QuadAlign( sizeof( LFS_RECORD_HEADER ))
 

Definition at line 132 of file lfsdisk.h.

Referenced by LfsFindLogRecord(), LfsUpdateLfcbFromNoRestart(), and LfsUpdateLfcbFromRestart().

#define LFS_RESTART_AREA_SIZE   (FIELD_OFFSET( LFS_RESTART_AREA, LogClientArray ))
 

Definition at line 516 of file lfsdisk.h.

#define LFS_RESTART_PAGE_HEADER_SIZE
 

Value:

( \ FIELD_OFFSET( LFS_RESTART_PAGE_HEADER, UpdateSequenceArray ) \ )

Definition at line 330 of file lfsdisk.h.

Referenced by LfsUpdateLfcbFromNoRestart(), and LfsUpdateLfcbFromPgHeader().

#define LFS_SIGNATURE_BAD_USA   "BAAD"
 

Definition at line 342 of file lfsdisk.h.

#define LFS_SIGNATURE_BAD_USA_ULONG   0x44414142
 

Definition at line 343 of file lfsdisk.h.

Referenced by LfsFindLastLsn(), and LfsPinOrMapData().

#define LFS_SIGNATURE_MODIFIED   "CHKD"
 

Definition at line 344 of file lfsdisk.h.

#define LFS_SIGNATURE_MODIFIED_ULONG   0x444b4843
 

Definition at line 345 of file lfsdisk.h.

Referenced by LfsReadRestart(), and LfsRestartLogFile().

#define LFS_SIGNATURE_RECORD_PAGE   "RCRD"
 

Definition at line 340 of file lfsdisk.h.

#define LFS_SIGNATURE_RECORD_PAGE_ULONG   0x44524352
 

Definition at line 341 of file lfsdisk.h.

Referenced by LfsCheckWriteRange(), LfsFindLastLsn(), LfsFlushLfcb(), LfsGetLbcb(), and LfsReadRestart().

#define LFS_SIGNATURE_RESTART_PAGE   "RSTR"
 

Definition at line 338 of file lfsdisk.h.

#define LFS_SIGNATURE_RESTART_PAGE_ULONG   0x52545352
 

Definition at line 339 of file lfsdisk.h.

Referenced by LfsFlushLfcb(), LfsReadRestart(), and LfsVerifyLogFile().

#define LFS_SIGNATURE_UNINITIALIZED   "\377\377\377\377"
 

Definition at line 346 of file lfsdisk.h.

#define LFS_SIGNATURE_UNINITIALIZED_ULONG   0xffffffff
 

Definition at line 347 of file lfsdisk.h.

Referenced by LfsCheckSubsequentLogPage(), LfsInitializeLogFilePriv(), and LfsReadRestart().

#define LFS_UNPACKED_RECORD_PAGE_HEADER_SIZE
 

Value:

( \ FIELD_OFFSET( LFS_RECORD_PAGE_HEADER, Header.Unpacked.UpdateSequenceArray ) \ )

Definition at line 255 of file lfsdisk.h.

Referenced by LfsUpdateLfcbFromPgHeader().

#define LOG_PAGE_LOG_RECORD_END   (0x00000001)
 

Definition at line 253 of file lfsdisk.h.

Referenced by LfsCopyReadLogRecord(), LfsFindLastLsn(), LfsFlushLfcb(), LfsFlushToLsnPriv(), and LfsWriteLogRecordIntoLogPage().

#define LOG_RECORD_MULTI_PAGE   (0x0001)
 

Definition at line 130 of file lfsdisk.h.

Referenced by LfsFindLogRecord(), and LfsWriteLogRecordIntoLogPage().

#define MINIMUM_LFS_CLIENTS   1
 

Definition at line 32 of file lfsdisk.h.

#define MINIMUM_LFS_PAGES   0x00000030
 

Definition at line 31 of file lfsdisk.h.

Referenced by LfsNormalizeBasicLogFile().

#define RESTART_SINGLE_PAGE_IO   (0x0001)
 

Definition at line 514 of file lfsdisk.h.

Referenced by LfsFindLastLsn(), LfsFlushLfcb(), LfsRestartLogFile(), LfsUpdateLfcbFromRestart(), and LfsUpdateRestartAreaFromLfcb().

#define UpdateSequenceArraySize STRUCT_SIZE   )     ((STRUCT_SIZE) / SEQUENCE_NUMBER_STRIDE + 1)
 

Definition at line 42 of file lfsdisk.h.

Referenced by LfsIsRestartPageHeaderValid(), and LfsUpdateLfcbFromPgHeader().

#define UpdateSequenceStructureSize MSH   )     ((((PMULTI_SECTOR_HEADER) (MSH))->UpdateSequenceArraySize - 1) * SEQUENCE_NUMBER_STRIDE)
 

Definition at line 39 of file lfsdisk.h.


Typedef Documentation

typedef struct _LFS_CLIENT_ID LFS_CLIENT_ID
 

typedef struct _LFS_CLIENT_RECORD LFS_CLIENT_RECORD
 

Referenced by LfsIsRestartAreaValid().

typedef struct _LFS_OLD_RESTART_AREA LFS_OLD_RESTART_AREA
 

Referenced by LfsIsRestartAreaValid().

typedef struct _LFS_PACKED_RECORD_PAGE LFS_PACKED_RECORD_PAGE
 

typedef struct _LFS_RECORD_HEADER LFS_RECORD_HEADER
 

typedef struct _LFS_RECORD_PAGE_HEADER LFS_RECORD_PAGE_HEADER
 

typedef struct _LFS_RESTART_AREA LFS_RESTART_AREA
 

Referenced by LfsIsRestartAreaValid().

typedef struct _LFS_RESTART_PAGE_HEADER LFS_RESTART_PAGE_HEADER
 

typedef struct _LFS_UNPACKED_RECORD_PAGE LFS_UNPACKED_RECORD_PAGE
 

typedef struct _LFS_CLIENT_ID * PLFS_CLIENT_ID
 

typedef struct _LFS_CLIENT_RECORD * PLFS_CLIENT_RECORD
 

Referenced by LfsIsClientAreaValid().

typedef struct _LFS_OLD_RESTART_AREA * PLFS_OLD_RESTART_AREA
 

typedef struct _LFS_PACKED_RECORD_PAGE * PLFS_PACKED_RECORD_PAGE
 

typedef struct _LFS_RECORD_HEADER * PLFS_RECORD_HEADER
 

Referenced by LfsPinOrMapLogRecordHeader().

typedef struct _LFS_RECORD_PAGE_HEADER * PLFS_RECORD_PAGE_HEADER
 

Referenced by LfsPinOrMapLogRecordHeader().

typedef struct _LFS_RESTART_AREA * PLFS_RESTART_AREA
 

Referenced by LfsFlushLfcb().

typedef struct _LFS_RESTART_PAGE_HEADER * PLFS_RESTART_PAGE_HEADER
 

typedef struct _LFS_UNPACKED_RECORD_PAGE * PLFS_UNPACKED_RECORD_PAGE
 


Generated on Sat May 15 19:44:32 2004 for test by doxygen 1.3.7