![]() |
![]() |
The dsmSetAccess function call gives other users or nodes access to backup versions or archived copies of your objects, access to all your objects, or access to a selective set. When you give access to another user, that user can query, restore, or retrieve your files. This command supports wildcards for the following fields: fs, hl, ll, node, owner.
Syntax
dsInt16_t DSMLINKAGE dsmSetAccess (dsUint32_t dsmHandle, dsmSetAccessType accessType, dsmObjName *objNameP, char *node, char *owner);
Parameters
atBackup | Specifies that access is being set to backup objects. |
atArchive | Specifies that the access is being set for archive objects. |
Return Codes
The return code numbers are provided in parentheses ( ).
Table 43. Return Codes for dsmSetAccess
Return Code | Explanation |
---|---|
DSM_RC_INVALID_ACCESS_TYPE | Invalid access type specified. |
DSM_RC_FILE_SPACE_NOT_FOUND (124) | Specified filespace was not found on the server. |
DSM_RC_QUERY_COMM_FAILURE | Communication error during server query. |
DSM_RC_NO_FILES_BACKUP | No files were backed up for this file space. |
DSM_RC_NO_FILES_ARCHIVE | No files were archived for this file space. |
DSM_RC_INVALID_SETACCESS | Invalid formulation of set access. |