DOKK / manpages / debian 10 / libdpm-dev / dpm_modifyfs.3.en
DPM_MODIFYFS(3) DPM Library Functions DPM_MODIFYFS(3)

dpm_modifyfs - modify the parameters of a disk pool filesystem

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

int dpm_modifyfs (char *server, char *fs, int status, int weight)

dpm_modifyfs modifies the parameters of a disk pool filesystem.

specifies the host name of the disk server where this filesystem is mounted.
specifies the mount point of the dedicated filesystem.
Initial status of this filesystem. It can be set to 0 or FS_DISABLED or FS_RDONLY. (-1 will tell the server to not change the current value).
specifies the weight of the filesystem. This is used during the filesystem selection. The value must be positive (-1 will tell the server to not change the current value). It is recommended to use a value lower than 10.

This function requires ADMIN privilege.

This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.

Filesystem does not exist.
The caller does not have ADMIN privilege.
server or fs is a NULL pointer.
The length of server exceeds CA_MAXHOSTNAMELEN or the length of fs exceeds 79.
Host unknown.
Database error.
Communication error.
$Date: 2011-05-19 13:04:02 +0200 (Thu, 19 May 2011) $ LCG