Table of Contents

NAME

gfs_all_close - close a group of forks

SYNOPSIS

#include <gfs.h>

int gfs_all_close(int file_id,int *fork_ids);

DESCRIPTION

gfs_all_close closes a group of forks belonging to file file_id. fork_ids is an array of fork ids with one entry for each subfile in the file. Although this array will normally be created by gfs_all_open, there is no requirement that that be so. Closing a fork allows that fork's space in the open fork table to be reused. It also allows the file system to delete the fork, if such a request has been issued.

RETURN VALUE

gfs_all_close returns zero on success, or -1 if an error occurred.

ERRORS

GFS_EBADF
Either file_id is not a valid file id or an entry in fork_ids is not a valid fork id.


Table of Contents