dpns_delreplica(3) - Linux man page
Name
dpns_delreplica - delete a replica for a given fileSynopsis
#include <sys/types.h>#include "dpns_api.h"
int dpns_delreplica (const char *guid, struct dpns_fileid *file_uniqueid, const char *sfn)
Description
- guid
- specifies the Grid Unique IDentifier.
- sfn
- is either the Site URL or the Physical File Name for the replica.
Return Value
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.Errors
- ENOENT
- The named file or replica does not exist.
- EACCES
- Search permission is denied on a component of the parent directory or the effective user ID does not match the owner of the file or write permission on the file entry itself is denied.
- EFAULT
- sfn is a NULL pointer.
- EINVAL
- The length of guid exceeds CA_MAXGUIDLEN.
- ENAMETOOLONG
- The length of sfn exceeds CA_MAXSFNLEN.
- SENOSHOST
- Host unknown.
- SENOSSERV
- Service unknown.
- SECOMERR
- Communication error.
- ENSNACT
- Name server is not running or is being shutdown.