dpns_modreplica man page

DPNS_MODREPLICA(3)          DPNS Library Functions          DPNS_MODREPLICA(3)

      dpns_modreplica - modify information about a given replica

      [1m#include <sys/types.h>[0m
      [1m#include "dpns_api.h"[0m

      [1mint  dpns_modreplica  (const char *[4m[22msfn[24m[1m, const char *[4m[22msetname[24m[1m, const char[0m
      [1m*[4m[22mpoolname[24m[1m, const char *[4m[22mserver[24m[1m)[0m

      [1mint dpns_modreplicax (const char *[4m[22msfn[24m[1m, const char *[4m[22msetname[24m[1m, const  char[0m
      [1m*[4m[22mpoolname[24m[1m, const char *[4m[22mserver[24m[1m, const char *[4m[22mfs[24m[1m, const char [4m[22mr_type[24m[1m)[0m

      [1mdpns_modreplica [22mmodifies information about a given replica.

      [4msfn[24m    is  either  the  Site  URL  or  the  Physical  File Name for the

             is either a replica set name or a space token.

      [4mserver[24m is either the Storage Element fully qualified  hostname  or  the
             disk server.

             specifies  the  disk pool name (this argument is only meaningful
             for the Disk Pool Manager).

             is similar to [1mdpns_modreplica [22mbut has the additional arguments:

      [4mfs[24m     specifies the mount point  of  the  dedicated  filesystem  (this
             argument is only meaningful for the Disk Pool Manager).

      [4mr_type[24m may be one of the following:

             [1mP      [22mPrimary

             [1mS      [22mSecondary.

      These  routines  return  0 if the operation was successful or -1 if the
      operation failed. In the latter case, [1mserrno [22mis set appropriately.

      [1mENOENT       [22mThe named replica does not exist.

      [1mEACCES       [22mSearch permission is denied on a component of  the  parent
                   directory  or  the  effective  user  ID does not match the
                   owner of the file or read permission  on  the  file  entry
                   itself is denied.

      [1mEFAULT       [4m[22msfn[24m is a NULL pointer.

      [1mEINVAL       [22mThe  length  of [4msetname[24m exceeds 36, the length of [4mpoolname[0m
                   exceeds [1mCA_MAXPOOLNAMELEN [22mor the length of [4mserver[24m  exceeds

      [1mENAMETOOLONG [22mThe length of [4msfn[24m exceeds [1mCA_MAXSFNLEN[22m.

      [1mSENOSHOST    [22mHost unknown.

      [1mSENOSSERV    [22mService unknown.

      [1mSECOMERR     [22mCommunication error.

      [1mENSNACT      [22mName server is not running or is being shutdown.

[1mSEE ALSO[0m
      [1mCastor_limits(4)[22m, [1mdpns_addreplica(3)[22m, [1mdpns_listreplica(3)[0m

DPNS                     $Date: 2008/08/27 12:43:28 $       DPNS_MODREPLICA(3)

Referenced By

dpns_modreplicax(3) is an alias of dpns_modreplica(3).