NWSM_SCAN_INFORMATION

Contains information about one data set.

Syntax

  typedef struct 
  { 
     UINT16   bufferSize; 
     UINT16   scanInformationSize; 
     UINT32   attributes; 
     UINT32   creatorID; 
     UINT32   creatorNameSpaceNumber; 
     UINT32   primaryDataStreamSize; 
     UINT32   totalStreamsDataSize; 
     UINT8    modifiedFlag; 
     UINT8    deletedFlag; 
     UINT8    parentFlag; 
     UINT8    reserved[5]; 
     UINT32   accessDateAndTime; 
     UINT32   createDateAndTime; 
     UINT32   modifiedDateAndTime; 
     UINT32   archivedDateAndTime; 
     UINT16   otherInformationSize; 
     UINT8    otherInformation[otherInformationSize]; 
  } NWSM_SCAN_INFORMATION;
  

Fields

bufferSize

Specifies the actual buffer size allocated for NWSM_SCAN_INFORMATION.

scanInformationSize

Specifies the total memory used by NWSM_SCAN_INFORMATION (excluding bufferSize).

attributes

Specifies the data set's attributes.

creatorID

Specifies the ID of the entity who created the data set.

creatorNameSpaceNumber

Specifies the number of the name space that created the data set.

primaryDataStreamSize

Specifies the size of the primary data stream (not the size of the data set).

totalStreamsDataSize

Specifies the total number of 4 KB blocks used to contain all of the data set's data streams (not the data set's size).

modifiedFlag

Specifies if the data set was modified since the last backup:

  • TRUE Data set was modified
  • FALSE Data set was not modified
deletedFlag

Specifies if the data set was deleted:

  • TRUE Data set was deleted
  • FALSE Data set was not deleted
parentFlag

Specifies if the data set is a parent:

  • TRUE Data set is a parent
  • FALSE Data set is not a parent
reserved

Is reserved for future use.

accessDateAndTime

Specifies the data set's last accessed date and time in DOS-packed format.

createDateAndTime

Specifies the data set's created date and time in DOS-packed format.

modifiedDateAndTime

Specifies the data set's last modified date and time in DOS-packed format.

archivedDateAndTime

Specifies the data set's last archived date and time in DOS-packed format.

otherInformationSize

Specifies the size of otherInformation.

otherInformation

Is reserved for future use to specify TSA developer-specific information.

Remarks

The information returned by NWSM_SCAN_INFORMATION depends upon the settings of NWSM_SCAN_CONTROL, NWSM_SELECTION_LIST, and the options supported by the TSA (see Unsupported Backup Options). This information may be used for backup logs and determining if the data exists before restoring it.

Not all TSAs support all the fields of NWSM_SCAN_INFORMATION. All unsupported fields are zeroed out by the TSA. NWSM_SCAN_INFORMATION and NWSM_DATA_SET_NAME_LIST represents the only information available to the engine about the data set.

NOTE:For users of SIDF, the scan control information and the data set’s name information are known as the data set information.

The values that can be set to attributes is listed in the following table.

Option

Value

Description

None

0x00000000

NWFA_NORMAL: The data set has its normal attributes set.

0

0x00000001

NWFA_READ_ONLY: The data set is marked as read only.

1

0x00000002

NWFA_HIDDEN: The data set is marked as hidden.

2

0x00000004

NWFA_SYSTEM: The data set is marked as a system file.

3

0x00000008

NWFA_EXECUTE_ONLY: The data set is marked as an executable.

4

0x00000010

NWFA_DIRECTORY: The data set is a parent.

5

0x00000020

NWFA_ARCHIVE: The data set's archive bit.

6

 

Reserved

7

0x00000080

NWFA_SHARABLE: The data set is marked as sharable.

8 - 11

 

Reserved

12

0x00001000

NWFA_TRANSACTION: The data set is part of a transaction in progress.

13

 

Reserved

14

0x00004000

NWFA_READ_AUDIT: The data set is marked for read auditing.

15

0x00008000

NWFA_WRITE_AUDIT: The data set is marked for write auditing.

16

0x00010000

NWFA_PURGE: The data set marked to be purged.

17

0x00020000

NWFA_RENAME_INHIBIT: The data set cannot be renamed.

18

0x00040000

NWFA_DELETE_INHIBIT: The data set cannot be deleted.

19

0x00080000

NWFA_COPY_INHIBIT: The data set cannot be copied.

20

0x00100000

NWFA_FILE_AUDITING: The data set's file auditing flag.

21

 

Reserved

22

0x00400000

NWFA_REMOTE_DATA_ACCESS: The data set can be remotely accessed.

23

0x00800000

NWFA_REMOTE_DATA_INHIBIT: The data set cannot be remotely accessed.

24

0x01000000

NWFA_REMOTE_DATA_SAVE_KEY_BIT: The data was migrated to tertiary storage. This bit applies only to child data sets.

25

0x02000000

NWFA_COMPRESS_FILE_IMMEDIATE: The data set is not yet compressed.

26

0x04000000

NWFA_DATA_STREAM_IS_COMPRESSED: The data set is compressed.

27

0x08000000

NWFA_DO_NOT_COMPRESS_FILE: The data cannot be compressed.

28

 

Reserved

29

0x20000000

NWFA_CANT_COMPRESS_DATA: The data set's data cannot be compressed.

30

0x40000000

NWFA_OBJ_ARCHIVE_BIT: One or more of the following has been changed since the last backup: extended attributes, owner ID, or trustees.

creatorID is not generic and is defined by the TSA. For NetWare, it is the bindery ID.

creatorNameSpaceNumber has a corresponding name space name string that is returned by NWSMTSListSupportedNameSpaces. This number is always returned even if the creator name space type was not requested by field returnNameSpaceType of NWSM_SCAN_CONTROL.

Call NWSMTSGetUnsupportedOptions to see if the TSA supports accessDateAndTime, createDateAndTime, modifiedDateAndTime, and archivedDateAndTime.

Support for Larger Files (file size more than 4 GB)

The NSS file system supports files of sizes more than 4 GB. The primaryDataStreamSize returns the first double word (low order four bytes) of the file size. The file system TSA returns the second double word as part of the otherInformation while setting the otherInformationSize to 4.

Support for Scan Information Extensions

Different TSAs may have meta data regarding data sets that do not fit into the existing definition of the scan information structure. Such information is returned as extensions in the otherInformation field. The otherInformationSize is set to the number of bytes of extension information that is returned in this case. This size and the otherInformation buffer can be used with the extension APIs to process this additional meta data. See Section 6.3, Extension Functions. The extensions and their fields are detailed in Section 5.7, Extensions.

NOTE:As the otherInformation field is already extended to contain the second double word to represent QUAD file sizes, extensions are appended after the first double word when present. Use otherInformationSize after subtracting the size of a double word to ensure that there are extensions encoded in otherInformation.