Table of Contents

NAME

gfs_open_fork - open a fork.

SYNOPSIS

#include <gfs.h>

int gfs_open_fork(int fid, int subfile, char *name);

DESCRIPTION

gfs_open_fork attempts to open the fork, name, which is contained in the subfile subfile, of the previously opened file fid, and returns a fork_id (a small, non-negative integer) for use in subsequent gfs_read, gfs_write, etc. calls.

RETURN VALUE

gfs_open_fork returns the new fork_id, or -1 if an error occurred (in which case, gfs_errno is set appropriately).

ERRORS

GFS_EBADF
fid is not a valid file id.

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