dpm_rmfs3
Remove a filesystem from a disk pool definition
Usage
#include <sys/types.h>
#include "dpm_api.h"
int dpm_rmfs (char *server, char *fs)
Overview
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 |
SENOSHOST
|
Host unknown. |
SEINTERNAL
|
Database error. |
SECOMERR
|
Communication error. |
Releases
Unchanged in 5 releases since Debian 6.0 (Squeeze).