dpm_rmpool man page

DPM_RMPOOL(3)                DPM Library Functions               DPM_RMPOOL(3)

[1mNAME[0m
      dpm_rmpool - remove a disk pool definition

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

      [1mint dpm_rmpool (char *[4m[22mpoolname[24m[1m)[0m

[1mDESCRIPTION[0m
      [1mdpm_rmpool [22mremoves a disk pool definition.

      [4mpoolname[0m
             specifies the disk pool name.

      This function requires ADMIN privilege.

[1mRETURN VALUE[0m
      This  routine  returns  0  if the operation was successful or -1 if the
      operation failed. In the latter case, [1mserrno [22mis set appropriately.

[1mERRORS[0m
      [1mENOENT       [22mPool does not exist.

      [1mEACCES       [22mThe caller does not have ADMIN privilege.

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

      [1mEEXIST       [22mSpace token still associated with [4mpoolname[24m.

      [1mEINVAL       [22mThe length of [4mpoolname[24m exceeds [1mCA_MAXPOOLNAMELEN[22m.

      [1mSENOSHOST    [22mHost unknown.

      [1mSEINTERNAL   [22mDatabase error.

      [1mSECOMERR     [22mCommunication error.

LCG          $Date: 2010-04-01 11:25:59 +0200 (Thu, 01 Apr 2010) $DPM_RMPOOL(3)