DPM_RELEASESPACE

Section: DPM Library Functions (3)
Updated: $Date: 2005/11/09 09:18:53 $
Index Return to Main Contents
 

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:

s_token
specifies the token returned by a previous reservespace request.
force
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

EINVAL
s_token is invalid (too long) or unknown.
SENOSHOST
Host unknown.
SEINTERNAL
Database error.
SECOMERR
Communication error.