Scroll to navigation

DPM_RELEASESPACE(3) DPM Library Functions DPM_RELEASESPACE(3)

NAME

dpm_releasespace - release space

SYNOPSIS

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

int dpm_releasespace (char *s_token, int force)

DESCRIPTION

dpm_releasespace releases space.

The input arguments are:

specifies the token returned by a previous reservespace request.
force file release. If force is false (default), the space will not be released if it has files that are still pinned in the space.

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

s_token is invalid (too long) or unknown.
Host unknown.
Database error.
Communication error.
$Date: 2005/11/09 09:18:53 $ LCG