Table of Contents

NAME

gfs_all_open - open a fork in each subfile.

SYNOPSIS

#include <gfs.h>

int gfs_all_open(int file_id , int *fork_ids , char *name);

DESCRIPTION

gfs_all_open attempts to open the fork, name, in each subfile of the previously opened file fid, and return an array of fork_ids.

RETURN VALUE

gfs_all_open returns the number of forks opened, and fills in the *fork_ids array with fork IDs. The array contains one entry for each subfile in the file. If the call fails, a -1 is returned and gfs_errno is set appropriately. *fork_ids may or may not be modified.

ERRORS

GFS_EBADF
file_id is not a valid file.

GFS_ENAMETOOLONG
name was too long.

GFS_ENOENT
name does not exist.

GFS_EMFILE
The limit on the total number of forks open by the client has been reached.


Table of Contents