GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


NAME

       dpns_delreplica - delete a replica for a given file

SYNOPSIS

       #include <sys/types.h>
       #include "dpns_api.h"

       int    dpns_delreplica    (const   char   *guid,   struct   dpns_fileid
       *file_uniqueid, const char *sfn)

DESCRIPTION

       dpns_delreplica deletes a given replica. An extra check may be obtained
       by  specifying guid or file_uniqueid.  If both are given, file_uniqueid
       is used.

       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.

SEE ALSO

       Castor_limits(4), dpns_addreplica(3), dpns_listreplica(3)



  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to webmaster@gnu.wiki.
Page load time: 0.144 seconds. Last modified: November 04 2018 12:49:43.