Scroll to navigation

DPM_RMPOOL(3) DPM Library Functions DPM_RMPOOL(3)

NAME

dpm_rmpool - remove a disk pool definition

SYNOPSIS

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

int dpm_rmpool (char *poolname)

DESCRIPTION

dpm_rmpool removes a disk pool definition.

specifies the disk pool name.

This function requires ADMIN privilege.

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

Pool does not exist.
The caller does not have ADMIN privilege.
poolname is a NULL pointer.
Space token still associated with poolname.
The length of poolname exceeds CA_MAXPOOLNAMELEN.
Host unknown.
Database error.
Communication error.
$Date$ LCG