![]() |
![]() |
The dsmUpdateObj function call updates the meta information associated with an active backup or archive object already on the server. The application bit data will not be affected. To update an object, you must give a specific non-wildcard name. To update an archived object, set the dsmSendType to stArchive. Only the latest named archive object is updated.
You can only start the dsmUpdateObj call in the session state; it cannot be called inside a transaction because it performs its own transaction. And, you can update only one object at a time.
dsInt16_t dsmUpdateObj
(dsUint32_t dsmHandle,
dsmSendType sendType,
void *sendBuff,
dsmObjName *objNameP,
ObjAttr *objAttrPtr, /* objInfo */
dsUint16_t objUpdAct); /* action bit vector */
Parameters
The field descriptions are the same as those in dsmSendObj, with the following exceptions:
Other differences are:
The return code numbers are provided in parentheses ( ).
Table 46. Return Codes for dsmUpdateObj
| Return Code | Explanation |
|---|---|
| DSM_RC_INVALID_ ACTION (2232) | Invalid action. |
| DSM_RC_FS_NOT_REGISTERED (2061) | Filespace not registered. |
| DSM_RC_BAD_CALL_SEQUENCE (2041) | Sequence of calls is invalid. |
| DSM_RC_WILDCHAR_NOTALLOWED (2050) | Wildcard characters are not allowed. |
| DSM_RC_ABORT_NO_MATCH (2) | Previous query does not match. |