DPM_GETPOOLFS(3) | DPM Library Functions | DPM_GETPOOLFS(3) |
dpm_getpoolfs - get list of filesystems for a given pool
#include <sys/types.h>
#include "dpm_api.h"
int dpm_getpoolfs (char *poolname, int *nbfs, struct dpm_fs **dpm_fs)
dpm_getpoolfs gets list of filesystems for a given pool.
The input argument is:
The output arguments are:
struct dpm_fs { char poolname[CA_MAXPOOLNAMELEN+1]; char server[CA_MAXHOSTNAMELEN+1]; char fs[80]; u_signed64 capacity; u_signed64 free; int status; int weight; };
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
$Date: 2011-05-19 13:04:02 +0200 (Thu, 19 May 2011) $ | LCG |