; ; ************************************************************************* ; * * ; * © Copyright 2010, Hewlett-Packard Development Company, L.P. * ; * * ; * Confidential computer software. Valid license from HP and/or * ; * its subsidiaries required for possession, use, or copying. * ; * * ; * Consistent with FAR 12.211 and 12.212, Commercial Computer Software, * ; * Computer Software Documentation, and Technical Data for Commercial * ; * Items are licensed to the U.S. Government under vendor's standard * ; * commercial license. * ; * * ; * Neither HP nor any of its subsidiaries shall be liable for technical * ; * or editorial errors or omissions contained herein. The information * ; * in this document is provided "as is" without warranty of any kind and * ; * is subject to change without notice. The warranties for HP products * ; * are set forth in the express limited warranty statements accompanying * ; * such products. Nothing herein should be construed as constituting an * ; * additional warranty. * ; * * ; ************************************************************************* ; ******************************************************************************************************************************** ; Created: 30-Mar-2010 16:21:26 by OpenVMS SDL EV3-3 ; Source: 13-JUL-2009 17:15:40 $1$DGA7374:[BACKUP.SRC]BACKDEF.SDL;1 ; ******************************************************************************************************************************** .MACRO $BBHDEF,..EQU=<=>,..COL=<:> BBH$K_COMMON'..equ'32 ; end of common header BBH$C_COMMON'..equ'32 ; end of common header BBH$K_LEVEL1'..equ'257 ; level 1, version 1 BBH$K_LEVEL5'..equ'1281 ; level 5, version 1 BBH$M_NOCRC'..equ'^X1 BBH$M_COMPRESSED_SS'..equ'^X2 BBH$M_COMPRESSED_BUFFER'..equ'^X4 BBH$K_LENGTH'..equ'256 ; length of block header BBH$C_LENGTH'..equ'256 ; length of block header BBH$W_SIZE'..equ'0 ; size in bytes of block header BBH$W_OPSYS'..equ'2 ; operating system ID BBH$W_SUBSYS'..equ'4 ; subsystem ID BBH$W_APPLIC'..equ'6 ; application ID BBH$L_NUMBER'..equ'8 ; block sequence number BBH$W_STRUCLEV'..equ'32 ; block structure level BBH$B_STRUCVER'..equ'32 ; structure version number BBH$B_STRUCLEV'..equ'33 ; major structure level BBH$W_VOLNUM'..equ'34 ; media volume number BBH$L_CRC'..equ'36 ; block CRC BBH$L_BLOCKSIZE'..equ'40 ; block size in bytes BBH$L_FLAGS'..equ'44 ; block flags BBH$V_NOCRC'..equ'0 ; no CRC computed for block BBH$V_COMPRESSED_SS'..equ'1 ; compressed saveset BBH$V_COMPRESSED_BUFFER'..equ'2 ; compressed block BBH$S_COMPRESS_ALGO'..equ'4 BBH$V_COMPRESS_ALGO'..equ'3 ; compression algorithm used - for future BBH$S_SSNAME'..equ'32 BBH$T_SSNAME'..equ'48 ; save set name (counted ASCII) ; for compatibility sake don't change ; *** Note: Old overlay form must be used in FID & DID due to SDL bug ; *** that omits the field size symbol in a structured field. BBH$S_FID'..equ'6 BBH$W_FID'..equ'80 ; current file ID BBH$W_FID_NUM'..equ'80 ; file number BBH$W_FID_SEQ'..equ'82 ; file sequence number BBH$W_FID_RVN'..equ'84 ; relative volume number BBH$B_FID_RVN'..equ'84 ; alternate format RVN BBH$B_FID_NMX'..equ'85 ; alternate format file number extension BBH$S_DID'..equ'6 BBH$W_DID'..equ'86 ; current directory ID BBH$W_DID_NUM'..equ'86 ; file number BBH$W_DID_SEQ'..equ'88 ; file sequence number BBH$W_DID_RVN'..equ'90 ; relative volume number BBH$B_DID_RVN'..equ'90 ; alternate format RVN BBH$B_DID_NMX'..equ'91 ; alternate format file number extension BBH$S_FILENAME'..equ'128 BBH$T_FILENAME'..equ'92 ; current file name BBH$B_RTYPE'..equ'220 ; record type of current file BBH$B_RATTRIB'..equ'221 ; record attributes of current file BBH$W_RSIZE'..equ'222 ; record size of current file BBH$B_BKTSIZE'..equ'224 ; bucket size of current file BBH$B_VFCSIZE'..equ'225 ; VFC area size of current file BBH$W_MAXREC'..equ'226 ; maximum record size of current file BBH$L_FILESIZE'..equ'228 ; allocation of current file BBH$L_CMPRSBLKSIZ'..equ'232 ; compressed block size BBH$S_RESERVED2'..equ'18 BBH$T_RESERVED2'..equ'236 ; reserved BBH$W_CHECKSUM'..equ'254 ; header checksum .ENDM .MACRO $BRHDEF,..EQU=<=>,..COL=<:> ; + ; ; BRH - backup record header. This structure prefixes each record ; within a data block. It identifies the type and use of the record. ; ; - BRH$K_NULL'..equ'0 ; null record BRH$K_SUMMARY'..equ'1 ; BACKUP summary record BRH$K_VOLUME'..equ'2 ; volume summary record BRH$K_FILE'..equ'3 ; file attribute record BRH$K_VBN'..equ'4 ; file virtual block record BRH$K_PHYSVOL'..equ'5 ; physical volume attribute record BRH$K_LBN'..equ'6 ; physical volume logical block record BRH$K_FID'..equ'7 ; file ID record BRH$K_FILE_EXT'..equ'8 ; file attribute extension record BRH$K_LBN_576'..equ'9 ; 576 byte LBN record BRH$K_RS_DIRATTR'..equ'10 ; RSTS directory attribute record BRH$K_ALIAS'..equ'11 BRH$K_MAX_RTYPE'..equ'12 ; max record type BRH$M_BADDATA'..equ'^X1 BRH$M_DIRECTORY'..equ'^X2 BRH$M_NONSEQUENTIAL'..equ'^X4 BRH$M_BLOCKERRS'..equ'^X8 BRH$M_ALIAS_ENTRY'..equ'^X10 BRH$M_HEADONLY'..equ'^X20 BRH$K_LENGTH'..equ'16 BRH$C_LENGTH'..equ'16 BRH$W_RSIZE'..equ'0 ; record size in bytes BRH$W_RTYPE'..equ'2 ; record type BRH$L_FLAGS'..equ'4 ; record flags BRH$V_BADDATA'..equ'0 ; data error occurred in record BRH$V_DIRECTORY'..equ'1 ; record belongs to a directory file BRH$V_NONSEQUENTIAL'..equ'2 ; data record is not in LBN / VBN sequence BRH$V_BLOCKERRS'..equ'3 ; per block error mask present BRH$V_ALIAS_ENTRY'..equ'4 ; file saved via alias entry BRH$V_HEADONLY'..equ'5 ; File's data isn't copied BRH$L_ADDRESS'..equ'8 ; address of data (e.g., VBN or LBN) BRH$W_BLOCKFLAGS'..equ'12 ; per block error mask BRH$W_RESERVED'..equ'14 ; reserved .ENDM .MACRO $BSADEF,..EQU=<=>,..COL=<:> ; + ; ; BACKUP attribute codes. These attributes appear in various records ; in a save set. ; ; - ; ; Definition for file ID record ; (Structure level definition shared with other attribute records) ; BSA$W_STRUCLEV'..equ'0 ; save set structure level BSA$W_FID_NUM'..equ'2 ; NUM word of file ID BSA$W_FID_RVN'..equ'4 ; RVN word of file ID BSA$B_FID_RVN'..equ'4 ; alternate format RVN word BSA$B_FID_NMX'..equ'5 ; alternate format RVN word BSA$W_FID_COUNT'..equ'6 ; count of SEQ words following BSA$W_FID_SEQ'..equ'8 ; SEQ word of file ID, repeated ; BSA$W_FID_COUNT times ; ; Attribute entry header ; BSA$K_LENGTH'..equ'4 ; length of attribute descriptor BSA$C_LENGTH'..equ'4 ; length of attribute descriptor ; BSA$W_SIZE'..equ'0 ; size of attribute value BSA$W_TYPE'..equ'2 ; attribute code ; Data item within placement attribute record ; BSA$W_PLC_PTR'..equ'0 ; placement pointer BSA$L_PLC_COUNT'..equ'2 ; count of placed blocks BSA$L_PLC_LBN'..equ'6 ; LBN of placed blocks BSA$W_PLC_LOLBN'..equ'6 ; BSA$W_PLC_HILBN'..equ'8 ; ; ALIAS record structure ; BSA$M_IGNORED_ALIAS'..equ'^X1 BSA_ALIAS$K_LENGTH'..equ'32 ; Length of fixed portion of ALIAS record BSA_ALIAS$C_LENGTH'..equ'32 ; Length of fixed portion of ALIAS record ; BSA$W_ALIAS_STRUCLEV'..equ'0 ; save set structure level ; *** Note: Old overlay form must be used in FID & DID due to SDL bug ; *** that omits the field size symbol in a structured field. BSA$S_ALIAS_DID'..equ'6 BSA$W_ALIAS_DID'..equ'2 ; ALIAS directory ID BSA$W_ALIAS_DID_NUM'..equ'2 ; ALIAS Dir. file number BSA$W_ALIAS_DID_SEQ'..equ'4 ; ALIAS Dir. file sequence number BSA$W_ALIAS_DID_RVN'..equ'6 ; ALIAS Dir. relative volume number BSA$B_ALIAS_DID_RVN'..equ'6 ; alternate format RVN BSA$B_ALIAS_DID_NMX'..equ'7 ; alternate format file number extension BSA$W_ALIAS_ENTRY_DIR_RSS'..equ'8 ; alias entry Dir. filename size BSA$W_ALIAS_ENTRY_RSS'..equ'10 ; alias entry filename size BSA$S_PRIM_DID'..equ'6 BSA$W_PRIM_DID'..equ'12 ; Primary File directory ID BSA$W_PRIM_DID_NUM'..equ'12 ; Primary File Dir. file number BSA$W_PRIM_DID_SEQ'..equ'14 ; Primary File Dir. file sequence number BSA$W_PRIM_DID_RVN'..equ'16 ; Primary File Dir. relative volume number BSA$B_PRIM_DID_RVN'..equ'16 ; alternate format RVN BSA$B_PRIM_DID_NMX'..equ'17 ; alternate format file number extension BSA$S_PRIM_FID'..equ'6 BSA$W_PRIM_FID'..equ'18 ; Primary file ID BSA$W_PRIM_FID_NUM'..equ'18 ; Primary File file number BSA$W_PRIM_FID_SEQ'..equ'20 ; Primary File file sequence number BSA$W_PRIM_FID_RVN'..equ'22 ; Primary File relative volume number BSA$B_PRIM_FID_RVN'..equ'22 ; alternate format RVN BSA$B_PRIM_FID_NMX'..equ'23 ; alternate format file number extension BSA$W_ALIAS_PRIM_DIR_RSS'..equ'24 ; Primary file entry Dir. filename size BSA$W_ALIAS_PRIM_RSS'..equ'26 ; Primary file entry filename size BSA$L_ALIAS_FLAGS'..equ'28 ; Alias Record Flags BSA$V_IGNORED_ALIAS'..equ'0 ; 1 = alias entry ignored ; Variable length strings follow the fixed portion of the ALIAS Record. ; These strings are: ; the alias entry directory name string, (includes brackets), ; the alias entry name string, (NTV), ; the primary file directory name string, (includes brackets), ; and the primary file name string, (NTV). ; ; ; Attribute type codes ; ; ; BACKUP summary record ; BSA$K_SSNAME'..equ'1 ; save set name BSA$K_COMMAND'..equ'2 ; command line BSA$K_COMMENT'..equ'3 ; user comment BSA$K_USERNAME'..equ'4 ; name of user who wrote the set BSA$K_USERUIC'..equ'5 ; UIC of user BSA$K_DATE'..equ'6 ; date backup was done BSA$K_OPSYS'..equ'7 ; operating system BSA$K_SYSVER'..equ'8 ; operating system version BSA$K_NODENAME'..equ'9 ; operating system node name BSA$K_SIR'..equ'10 ; CPU system ID register BSA$K_DRIVEID'..equ'11 ; ID of drive writing backup BSA$K_BACKVER'..equ'12 ; version number of BACKUP BSA$K_BLOCKSIZE'..equ'13 ; block size of save set BSA$K_XORSIZE'..equ'14 ; size of each XOR group BSA$K_BUFFERS'..equ'15 ; number of buffers BSA$K_VOLSETNAM'..equ'16 ; volume set name BSA$K_NVOLS'..equ'17 ; number of volumes in set BSA$K_BACKSIZE'..equ'18 ; total file space in save set BSA$K_BACKFILES'..equ'19 ; total number of files in save set ; ; Volume summary record ; BSA$K_VOLSTRUCT'..equ'20 ; volume structure level BSA$K_VOLNAME'..equ'21 ; volume label BSA$K_OWNERNAME'..equ'22 ; volume owner name BSA$K_FORMAT'..equ'23 ; volume file format name BSA$K_RVN'..equ'24 ; relative volume number BSA$K_VOLOWNER'..equ'25 ; volume owner UIC BSA$K_PROTECT'..equ'26 ; volume protection mask BSA$K_FILEPROT'..equ'27 ; volume default file protection BSA$K_RECPROT'..equ'28 ; volume default record protection BSA$K_VOLCHAR'..equ'29 ; volume characteristics bits BSA$K_VOLDATE'..equ'30 ; volume creation date BSA$K_WINDOW'..equ'31 ; default file window size BSA$K_LRU_LIM'..equ'32 ; default directory LRU limit BSA$K_EXTEND'..equ'33 ; default file extend size BSA$K_CLUSTER'..equ'34 ; storage map cluster factor BSA$K_RESFILES'..equ'35 ; number of reserved files BSA$K_VOLSIZE'..equ'36 ; original volume size in blocks BSA$K_TOTSIZE'..equ'37 ; total file space in volume set BSA$K_TOTFILES'..equ'38 ; total number of files in volume set BSA$K_MAXFILES'..equ'39 ; maximum number of files allowed BSA$K_MAXFILNUM'..equ'40 ; highest file number BSA$K_SERIALNUM'..equ'41 ; pack serial number ; ; File attribute record ; BSA$K_FILENAME'..equ'42 ; file name BSA$K_STRUCLEV'..equ'43 ; file structure level BSA$K_FID'..equ'44 ; file ID BSA$K_BACKLINK'..equ'45 ; directory ID back link BSA$K_FILESIZE'..equ'46 ; file size in blocks BSA$K_UIC'..equ'47 ; file owner UIC BSA$K_FPRO'..equ'48 ; file protection mask BSA$K_RPRO'..equ'49 ; record protection mask BSA$K_ACLEVEL'..equ'50 ; access level BSA$K_UCHAR'..equ'51 ; file characteristics BSA$K_RECATTR'..equ'52 ; record attributes area BSA$K_REVISION'..equ'53 ; revision number BSA$K_CREDATE'..equ'54 ; creation date BSA$K_REVDATE'..equ'55 ; revision date BSA$K_EXPDATE'..equ'56 ; expiration date BSA$K_BAKDATE'..equ'57 ; backup date ; ; Physical volume attribute record ; BSA$K_SECTORS'..equ'58 ; sectors per track BSA$K_TRACKS'..equ'59 ; tracks per cylinder BSA$K_CYLINDERS'..equ'60 ; cylinders per volume BSA$K_MAXBLOCK'..equ'61 ; number of logical blocks per volume BSA$K_DEVTYP'..equ'62 ; device type BSA$K_SERIAL'..equ'63 ; serial number BSA$K_DEVNAM'..equ'64 ; device name BSA$K_LABEL'..equ'65 ; label BSA$K_BADBLOCK'..equ'66 ; bad block descriptor, a sequence of ; pairs of longwords where the first ; is an LBN, the second is a count ; ; Additions ; BSA$K_INDEXLBN'..equ'67 ; (VS) Index file bitmap starting LBN BSA$K_BOOTBLOCK'..equ'68 ; (VS) Boot block image BSA$K_BOOTVBN'..equ'69 ; (FA) VBN within file for 1st boot image BSA$K_PLACEMENT'..equ'70 ; (FA) Placement data BSA$K_DIR_UIC'..equ'71 ; (FA) UIC of directory BSA$K_DIR_FPRO'..equ'72 ; (FA) Protection of directory BSA$K_DIR_STATUS'..equ'73 ; (FA) Status of directory BSA$K_DIR_VERLIM'..equ'74 ; (FA) Version limit of directory BSA$K_VERLIMIT'..equ'75 ; (FA) File version limit BSA$K_RETAINMIN'..equ'76 ; (VS) Minimum file retention period BSA$K_RETAINMAX'..equ'77 ; (VS) Maximum file retention period BSA$K_ACLSEGMENT'..equ'78 ; (FA) ACL segment for the file BSA$K_HIGHWATER'..equ'79 ; (FA) Highwater mark BSA$K_JNL_FLAGS'..equ'80 ; (FA) Journal control flags BSA$K_CRYPDATKEY'..equ'81 ; (BS) File encryption attribute BSA$K_LBNSIZE'..equ'82 ; (PS) Disk block size in bytes BSA$K_RS_DIRCRE'..equ'83 ; (DA) RSTS directory creation attribute BSA$K_RS_DIRATTR'..equ'84 ; (DA) RSTS directory attributes BSA$K_RS_FILECHAR'..equ'85 ; (FA) RSTS specific file attributes BSA$K_RS_VOLCHAR'..equ'86 ; (VS) RSTS specific volume characteristics BSA$K_RU_ACTIVE'..equ'87 ; (FA) Active recovery units recoverable facility id (if non-zero) BSA$K_BACKREV'..equ'88 ; (VS) Backup revision count. BSA$K_MIN_CLASS'..equ'89 ; (VS) Volume min security class BSA$K_MAX_CLASS'..equ'90 ; (VS) Volume max security class BSA$K_CLASS_PROT'..equ'91 ; (FA) File security class BSA$K_BOOTVBN2'..equ'92 ; (FA) VBN within file for 2nd boot image BSA$K_ACCDATE'..equ'93 ; (FA) File access date, (ODS5) BSA$K_ATTDATE'..equ'94 ; (FA) File attribute revision date, (ODS5) BSA$K_EX_RECATTR'..equ'95 ; (FA) Extended RMS record attributes, (ODS5) BSA$K_LENGTH_HINT'..equ'96 ; (FA) File length hint, (ODS5) BSA$K_LINKCOUNT'..equ'97 ; (FA) (hard) link count (ODS5) BSA$K_GPT_VBN'..equ'98 ; (FA) VBN within file for EFI/GPT partition image BSA$K_GPT_TYPE'..equ'99 ; (FA) Type of EFI/GPT partition image (see GPT_TYPE codes below) BSA$K_CRYPAESDATKEY'..equ'100 ; (BS) File encryption attribute for AES BSA$K_EXPSIZE'..equ'101 ; (VS) Volume Expansion Size BSA$K_COMPRESSALGO'..equ'102 ; (BS) File compressed with deflate algorithm BSA$K_NUM_ATRS'..equ'103 ; number of attribute codes ; ; Placement data type codes ; BSA$K_PLC_FID'..equ'1 ; file ID BSA$K_PLC_COUNT'..equ'2 ; count of unplaced blocks BSA$K_PLC_PLACE'..equ'3 ; placement pointer, count of placed blocks BSA$K_PLC_PLLBN'..equ'4 ; placement pointer, count, LBN of placed blocks ; ; GPT_TYPE codes ; BSA$K_GPT_BOOT'..equ'1 ; boot partition BSA$K_GPT_DIAG'..equ'2 ; diagnostic partition ; ; Lengths of above attributes ; ; ; BACKUP summary record ; BSA$S_SSNAME'..equ'79 ; save set name BSA$S_COMMAND'..equ'1024 ; command line BSA$S_COMMENT'..equ'255 ; user comment BSA$S_USERNAME'..equ'32 ; name of user who wrote the set BSA$S_USERUIC'..equ'4 ; UIC of user BSA$S_DATE'..equ'8 ; date backup was done BSA$S_OPSYS'..equ'2 ; operating system BSA$S_SYSVER'..equ'4 ; operating system version BSA$S_NODENAME'..equ'12 ; operating system node name BSA$S_SIR'..equ'4 ; CPU system ID register BSA$S_DRIVEID'..equ'16 ; ID of drive writing backup BSA$S_BACKVER'..equ'32 ; version number of BACKUP BSA$S_BLOCKSIZE'..equ'4 ; block size of save set BSA$S_XORSIZE'..equ'2 ; size of each XOR group BSA$S_BUFFERS'..equ'2 ; number of buffers BSA$S_VOLSETNAM'..equ'12 ; volume set name BSA$S_NVOLS'..equ'2 ; number of volumes in set BSA$S_BACKSIZE'..equ'8 ; total file space in save set BSA$S_BACKFILES'..equ'4 ; total number of files in save set ; ; Volume summary record ; BSA$S_VOLSTRUCT'..equ'2 ; volume structure level BSA$S_VOLNAME'..equ'12 ; volume label BSA$S_OWNERNAME'..equ'12 ; volume owner name BSA$S_FORMAT'..equ'12 ; volume file format name BSA$S_RVN'..equ'2 ; relative volume number BSA$S_VOLOWNER'..equ'4 ; volume owner UIC BSA$S_PROTECT'..equ'2 ; volume protection mask BSA$S_FILEPROT'..equ'2 ; volume default file protection BSA$S_RECPROT'..equ'2 ; volume default record protection BSA$S_VOLCHAR'..equ'2 ; volume characteristics bits BSA$S_VOLDATE'..equ'8 ; volume creation date BSA$S_WINDOW'..equ'1 ; default file window size BSA$S_LRU_LIM'..equ'1 ; default directory LRU limit BSA$S_EXTEND'..equ'2 ; default file extend size BSA$S_CLUSTER'..equ'2 ; storage map cluster factor BSA$S_RESFILES'..equ'2 ; number of reserved files BSA$S_VOLSIZE'..equ'4 ; original volume size in blocks BSA$S_TOTSIZE'..equ'8 ; total file space in volume BSA$S_TOTFILES'..equ'4 ; total number of files in volume BSA$S_MAXFILES'..equ'4 ; maximum number of files allowed BSA$S_MAXFILNUM'..equ'4 ; highest file number BSA$S_SERIALNUM'..equ'4 ; pack serial number ; ; File attribute record ; BSA$S_FILENAME'..equ'128 ; file name BSA$S_STRUCLEV'..equ'2 ; file structure level BSA$S_FID'..equ'6 ; file ID BSA$S_BACKLINK'..equ'6 ; directory ID back link BSA$S_FILESIZE'..equ'4 ; file size in blocks BSA$S_UIC'..equ'4 ; file owner UIC BSA$S_FPRO'..equ'2 ; file protection mask BSA$S_RPRO'..equ'2 ; record protection mask BSA$S_ACLEVEL'..equ'1 ; access level BSA$S_UCHAR'..equ'4 ; file characteristics BSA$S_RECATTR'..equ'32 ; record attributes area BSA$S_REVISION'..equ'2 ; revision number BSA$S_CREDATE'..equ'8 ; creation date BSA$S_REVDATE'..equ'8 ; revision date BSA$S_EXPDATE'..equ'8 ; expiration date BSA$S_BAKDATE'..equ'8 ; backup date ; ; Physical volume attribute record ; BSA$S_SECTORS'..equ'1 ; sectors per track BSA$S_TRACKS'..equ'1 ; tracks per cylinder BSA$S_CYLINDERS'..equ'2 ; cylinders per volume BSA$S_MAXBLOCK'..equ'4 ; number of logical blocks per volume BSA$S_DEVTYP'..equ'4 ; device type BSA$S_SERIAL'..equ'4 ; serial number BSA$S_DEVNAM'..equ'64 ; device name BSA$S_LABEL'..equ'12 ; label BSA$S_BADBLOCK'..equ'8 ; bad block descriptor (one pair) ; ; Additions ; BSA$S_INDEXLBN'..equ'4 ; (VS) Index file bitmap starting LBN BSA$S_BOOTBLOCK'..equ'512 ; (VS) Boot block image BSA$S_BOOTVBN'..equ'4 ; (FA) VBN within file for boot block BSA$S_BOOTVBN2'..equ'4 ; (FA) VBN within file for boot image BSA$S_GPT_VBN'..equ'4 ; (FA) VBN within EFI/GPT partition file BSA$S_GPT_TYPE'..equ'4 ; (FA) type of EFI/GPT partition file BSA$S_PLACEMENT'..equ'2048 ; (FA) Placement data BSA$S_DIR_UIC'..equ'4 ; (FA) UIC of directory BSA$S_DIR_FPRO'..equ'2 ; (FA) Protection of directory BSA$S_DIR_STATUS'..equ'1 ; (FA) Status of directory BSA$S_DIR_VERLIM'..equ'2 ; (FA) Version limit of directory BSA$S_VERLIMIT'..equ'2 ; (FA) File version limit BSA$S_RETAINMIN'..equ'8 ; (VS) Minimum file retention period BSA$S_RETAINMAX'..equ'8 ; (VS) Maximum file retention period BSA$S_ACLSEGMENT'..equ'380 ; (FA) ACL segment for the file BSA$S_HIGHWATER'..equ'4 ; (FA) Highwater mark BSA$S_JNL_FLAGS'..equ'1 ; (FA) Journal control flags BSA$S_CRYPDATKEY'..equ'24 ; (BS) Saveset encryption key BSA$S_CRYPAESDATKEY'..equ'64 ; (BS) Saveset encryption key AES BSA$S_LBNSIZE'..equ'2 ; (PS) Disk block size in bytes BSA$S_RS_DIRCRE'..equ'4 ; (FA) RSTS directory creation attribute BSA$S_RS_DIRATTR'..equ'14 ; (FA) RSTS directory attributes BSA$S_RS_FILECHAR'..equ'12 ; (FA) RSTS specific file attributes BSA$S_RS_VOLCHAR'..equ'4 ; (VS) RSTS specific volume characteristics BSA$S_RU_ACTIVE'..equ'1 ; (FA) Active recovery units recoverable facility id (if non-zero) BSA$S_BACKREV'..equ'2 ; (VS) Backup revision count. BSA$S_MIN_CLASS'..equ'20 ; (VS) Volume min security class BSA$S_MAX_CLASS'..equ'20 ; (VS) Volume max security class BSA$S_CLASS_PROT'..equ'20 ; (FA) File security class BSA$S_ACCDATE'..equ'8 ; (FA) File access date, (ODS5) BSA$S_ATTDATE'..equ'8 ; (FA) File attribute revision date, (ODS5) BSA$S_EX_RECATTR'..equ'8 ; (FA) Extended RMS record attributes, (ODS5) BSA$S_LENGTH_HINT'..equ'16 ; (FA) File length hint, (ODS5 / FAT) BSA$S_LINKCOUNT'..equ'2 ; (FA) (hard) link count (ODS5) BSA$S_EXPSIZE'..equ'4 ; (VS) Dynamic Volume Expansion Size BSA$S_COMPRESSALGO'..equ'8 ; (BS) File compressed with deflate algorithm ; ; Placement data type codes ; BSA$S_PLC_FID'..equ'6 ; file ID BSA$S_PLC_COUNT'..equ'4 ; count of unplaced blocks BSA$S_PLC_PLACE'..equ'6 ; placement pointer, count of placed blocks BSA$S_PLC_PLLBN'..equ'10 ; placement pointer, count, LBN of placed blocks BSA$K_CRYP_DESCBC'..equ'1 ; Code for DES Cypher Block Chaining BSA$K_CRYP_DESECB'..equ'2 ; Code for DES Electronic Code Book. BSA$B_CRYPTYP'..equ'0 ; Byte code describing saveset encr alg BSA$S_CRYPKEY'..equ'8 BSA$Q_CRYPKEY'..equ'4 ; DES key used to encrypt saveset BSA$S_CRYPIV'..equ'8 BSA$Q_CRYPIV'..equ'12 ; DES initialize vector prototype BSA$L_CRYPCKSM'..equ'20 ; Checksum for attribute record BSA$K_CRYP_AESCBC128'..equ'1 ; Code for AES Cypher Block Chaining BSA$K_CRYP_AESCBC192'..equ'2 ; Code for AES Cypher Block Chaining BSA$K_CRYP_AESCBC256'..equ'3 ; Code for AES Cypher Block Chaining BSA$K_CRYP_AESECB128'..equ'4 ; Code for AES Electronic Code Book. BSA$K_CRYP_AESECB192'..equ'5 ; Code for AES Electronic Code Book. BSA$K_CRYP_AESECB256'..equ'6 ; Code for AES Electronic Code Book. BSA$K_CRYP_AESCFB128'..equ'7 BSA$K_CRYP_AESCFB192'..equ'8 BSA$K_CRYP_AESCFB256'..equ'9 BSA$K_CRYP_AESOFB128'..equ'10 BSA$K_CRYP_AESOFB192'..equ'11 BSA$K_CRYP_AESOFB256'..equ'12 BSA$W_CRYPAES_TYP'..equ'0 ; Word code describing saveset encr alg BSA$L_CRYPAES_CKSM'..equ'50 ; Checksum for attribute record .ENDM .MACRO $BJLDEF,..EQU=<=>,..COL=<:> ; + ; ; BACKUP journal file. ; ; - BJL$S_SIZE_LEN'..equ'1 ; length of size BJL$K_STRUCLEV'..equ'0 ; structure level BJL$K_SSNAME'..equ'1 ; save set name BJL$K_VOLUME'..equ'2 ; volume identification BJL$K_DIRECTORY'..equ'3 ; directory name BJL$K_FILE'..equ'4 ; file name BJL$B_SIZE'..equ'0 ; record length (XOR format) BJL$B_TYPE'..equ'1 ; record type BJL$B_DATA'..equ'2 ; beginning of data portion of record ; ; Following definitions are all relative to data portion of record. ; ; Structure level record. ; BJL$K_LEVEL1'..equ'257 ; level 1, version 1 BJL$K_LEVEL2'..equ'258 ; level 1, version 2 BJL$K_LEVEL5'..equ'1281 ; level 5, version 1 BJL$K_STRUC_LEN'..equ'2 ; length of record BJL$C_STRUC_LEN'..equ'2 ; length of record ; BJL$W_STRUCLEV'..equ'0 ; structure level BJL$B_STRUCVER'..equ'0 ; structure version number BJL$B_STRUCLEV'..equ'1 ; major structure level ; Save set name record. ; BJL$K_SSNAME_LEN'..equ'257 ; maximum length of record BJL$C_SSNAME_LEN'..equ'257 ; maximum length of record BJL$S_CREDATE'..equ'8 BJL$Q_CREDATE'..equ'0 ; creation date and time BJL$S_SSNAME'..equ'247 BJL$T_SSNAME'..equ'8 ; save set name (variable length) BJL$W_SSNAME_FLAGS'..equ'255 ; flags, (Ref. NAMESTR_SEG_FLAGS, etc.) ; The following masks define flag bits for file/directory name string ; segmentation. The structure is being defined in this way because the ; name string segment flag may be used in several journal file record flag fields. ; By defining the structure in this manner the flags are relative to the ; start of the record's flag field(s) and are not position dependant. ; BJL$M_MORE_SEGMENTS'..equ'^X2 BJL$v_namestrseg_fill1'..equ'0 ; reserve space for filename flags ; i.e. BJL$V_HEADONLY compatibility BJL$V_MORE_SEGMENTS'..equ'1 ; 0 = last segment, ; 1 = more segments to follow ; ; Add any new flags here. ; ; ; Volume identification record. ; BJL$K_VOLUME_LEN'..equ'14 ; length of record BJL$C_VOLUME_LEN'..equ'14 ; length of record BJL$S_VOLNAME'..equ'12 BJL$T_VOLNAME'..equ'0 ; volume label BJL$W_VOLNUMBER'..equ'12 ; volume sequence number ; ; Directory record. ; BJL$K_DIR_LEN'..equ'254 ; maximum length of record BJL$C_DIR_LEN'..equ'254 ; maximum length of record ; stored in XOR format BJL$S_DIRNAME'..equ'252 BJL$T_DIRNAME'..equ'0 ; directory name (variable length) BJL$W_DIRNAME_FLAGS'..equ'252 ; flags, (Ref. NAMESTR_SEG_FLAGS, etc.) ; ; File record. ; ; The following masks define flag bits. The structure is being defined ; in this way because the flags do not have a set position in the record ; defined by BJLDEF5 but simply follow directly after the file name. ; By defining the structures in this manner there is a full longword ; reserved but is not position dependant BJL$M_HEADONLY'..equ'^X1 BJL$V_HEADONLY'..equ'0 ; NOBACKUP was set when file was saved BJL$K_FILE_LEN'..equ'254 ; maximum length of record BJL$C_FILE_LEN'..equ'254 ; maximum length of record BJL$S_FILENAME'..equ'250 BJL$T_FILENAME'..equ'0 ; file name (variable length) ; Ref. FLAG_BITS and NAMESTR_SEG_FLAGS BCK_DEF_JOURBUFF_SIZE'..equ'512 ; default journal buffer size .ENDM