---
name: "dpm_rmfs"
section: "3"
platform: "linux"
package: "libdpm-dev"
version: "1.10.0-2+b3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/dpm_rmfs"
---

# dpm\_rmfs(3)

remove a filesystem from a disk pool definition

## NAME

dpm\_rmfs - remove a filesystem from a disk pool definition

## SYNOPSIS

**#include \<sys/types.h\>**\
 **#include "dpm\_api.h"**

**int dpm\_rmfs (char \****server***,** **char \****fs***)**

## DESCRIPTION

**dpm\_rmfs** removes a filesystem from a disk pool definition.

- *server*

  specifies the host name of the disk server where this filesystem is mounted.

- *fs*

  specifies the mount point of the dedicated filesystem.

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**

  Filesystem does not exist.

- **EACCES**

  The caller does not have ADMIN privilege.

- **EFAULT**

  *server* or *fs* is a NULL pointer.

- **EINVAL**

  The length of *server* exceeds **CA\_MAXHOSTNAMELEN** or the length of *fs* exceeds 79.

- **SENOSHOST**

  Host unknown.

- **SEINTERNAL**

  Database error.

- **SECOMERR**

  Communication error.
