Defines the characteristics and attributes of the data sets to scan for as well as the path information to return in conjunction with NWSM_SELECTION_LIST.
typedef struct { UINT16 bufferSize; UINT16 scanControlSize; UINT32 scanType; UINT32 firstAccessDateAndTime; UINT32 lastAccessDateAndTime; UINT32 firstCreateDateAndTime; UINT32 lastCreateDateAndTime; UINT32 firstModifiedDateAndTime; UINT32 lastModifiedDateAndTime; UINT32 firstArchivedDateAndTime; UINT32 lastArchivedDateAndTime; UINT8 returnChildTerminalNodeNameOnly; UINT8 parentsOnly; UINT8 childrenOnly; UINT8 createSkippedDataSetsFile; UINT8 generateCRC; UINT8 returnNFSHardLinksInDataSetName; UINT8 reserved[6]; UINT32 scanChildNameSpaceType; UINT32 returnNameSpaceType; UINT8 callScanFilter; UINT16 otherInformationSize; UINT8 otherInformation[otherInformationSize]; } NWSM_SCAN_CONTROL;
Specifies the structure size (including memory allocated for otherInformation).
Specifies the memory used by all the structure fields excluding bufferSize.
Specifies a bit map indicating the selected scan type options.
Specifies the DOS-packed date and time criteria to scan for.
Specifies the DOS-packed date and time criteria to scan for.
Specifies the DOS-packed date and time criteria to scan for.
Specifies the DOS-packed date and time criteria to scan for.
Specifies the DOS-packed date and time criteria to scan for.
Specifies the DOS-packed date and time criteria to scan for.
Specifies the DOS-packed date and time criteria to scan for.
Specifies the DOS-packed date and time criteria to scan for.
Specifies if only the name of the child will be returned by the scan:
Specifies if only parents will be scanned:
Specifies if only children will be scanned:
Specifies if the TSA will create a log of the data sets that qualified for the scan but were skipped:
Specifies if a CRC value will be generated for each data set:
Specifies if the data set's NFS hard links will be returned in dataSetName:
Is reserved for future use.
Specifies the name space of the child data sets to scan for-usually set to NWSM_ALL_NAME_SPACES (see Returned Name Space Type).
Specifies the name space types that the data set's name will be returned in.
Specifies if the TSA will use the specified scan filter:
Specifies the size of otherInformation.
Specifies developer-specific information.
bufferSize may need to be larger than the structure because otherInformation may vary in size. To prevent the buffer size from being reallocated often, add extra space to bufferSize.
scanType is graphically represented by a 32-bitmap: bit 0-6 represents the predefined scan types and bit 7-31 represents the TSA specific scan types
Figure 4-1 Scan Type Bitmap
For Target Services that support purging deleted files, set scanType to NWSM_PURGE_IMMED_ON_DELETE before calling NWSMTSScanDataSetBegin.
The following table show the scan type that each TSA supports:
The TSA specifies which other scan types to enable and disable when a scan type is chosen. The TSA flags can be ORed to produce the desired action. However, the combination of various scan types can produce an illegal condition or unwanted results. The TSA will return an error indicating that an illegal condition might exist, but it cannot signal that an undesirable result might occur.
The date and time fields specify the range for the scan criteria. A data set meets the date and time criteria if all the data set's date and time values are within the range specified by all the date and time fields. Zero indicates an open-ended scan for that kind of date and time information (see Date and Time Fields for more information). These fields contain DOS-packed values and can be packed or unpacked by calling the "DOS Date and Time functions" shown in Storage Management Services Utilities Library. Some TSAs may not support all of the date and time fields (see NWSMTSGetUnsupportedOptions).
The following table gives an example of the scan type settings and indicates the results of each scan
TSA support for returnChildTerminalNodeNameOnly is indicated by calling NWSMTSGetUnsupportedOptions.
If returnChildTerminalNodeNameOnly is set to TRUE, NWSMTSScanDataSetBegin returns the fully qualified path of the parent of the first child data set found. For the name of the first child data set, call NWSMTSScanNextDataSet (the path information is provided by the parent).
childrenOnly must be set to false if returnChildTerminalNodeName is set to TRUE (see Scan Settings for more information).
TSA support for createSkippedDataSetsFile can be determined by calling NWSMTSGetUnsupportedOptions (see Log Files and NWSMTSScanDataSetBegin for more information).
generateCRC enhances data integrity, but decreases the TSA’s performance slightly if set to TRUE.
The values that can be set for returnNameSpaceType is listed in the following table.
TSA defined resources are logical resource groupings. Logical groupings refers to the fact that a bindery or file server does not exist as a single entity but as a logical group of lesser resources. The bindery consists of 3 files while the file server consists of: the bindery, volume, directories, and files.
callScanFilter is not supported under NetWare 4.