1DPM_ADDFS(3)                 DPM Library Functions                DPM_ADDFS(3)
2
3
4

NAME

6       dpm_addfs - add a filesystem to a disk pool
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "dpm_api.h"
11
12       int dpm_addfs (char *poolname, char *server, char *fs, int status)
13

DESCRIPTION

15       dpm_addfs adds a filesystem to a disk pool.
16
17       poolname
18              specifies   the   disk   pool   name  previously  defined  using
19              dpm_addpool.
20
21       server specifies the host name of the disk server where this filesystem
22              is mounted.
23
24       fs     specifies the mount point of the dedicated filesystem.
25
26       status Initial status of this filesystem. It can be set to 0 or FS_DIS‐
27              ABLED or FS_RDONLY.
28
29       This function requires ADMIN privilege.
30

RETURN VALUE

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

ERRORS

36       ENOENT       Filesystem does not exist.
37
38       EACCES       The caller does not have ADMIN privilege.
39
40       EFAULT       poolname, server or fs is a NULL pointer.
41
42       EEXIST       this filesystem is already part of a pool.
43
44       ENOMEM       Memory  could  not be allocated for storing the filesystem
45                    definition.
46
47       EINVAL       The pool is unknown or  the  length  of  poolname  exceeds
48                    CA_MAXPOOLNAMELEN  or the length of server exceeds CA_MAX‐
49                    HOSTNAMELEN or the length of fs exceeds 79.
50
51       SENOSHOST    Host unknown.
52
53       SEINTERNAL   Database error.
54
55       SECOMERR     Communication error.
56
57
58
59LCG                      $Date: 2006/09/11 05:40:30 $             DPM_ADDFS(3)
Impressum