dpm_rmpool(3)

dpm_rmpool3

Remove a disk pool definition

Usage

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

int dpm_rmpool (char *poolname)

Overview

dpm_rmpool removes a disk pool definition.

poolname

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

ENOENT

Pool does not exist.

EACCES

The caller does not have ADMIN privilege.

EFAULT

poolname is a NULL pointer.

EEXIST

Space token still associated with poolname.

EINVAL

The length of poolname exceeds CA_MAXPOOLNAMELEN.

SENOSHOST

Host unknown.

SEINTERNAL

Database error.

SECOMERR

Communication error.

Releases

Unchanged in 5 releases since Debian 6.0 (Squeeze).

  1. 6.0–10

From libdpm-dev 1.10.0-2+b3 in Debian 10 (Buster). Parsed by carta from the page's man source.