Table of Contents

NAME

gfs_create_fork - create a fork

SYNOPSIS

#include <gfs.h>

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

DESCRIPTION

gfs_create_fork attempts to create a fork named name, within subfile, subfile, of the previously opened file, fid.

RETURN VALUE

gfs_create_fork returns 0 if the fork was successfully created, or -1 if an error occurred (in which case, gfs_errno is set appropriately).

ERRORS

GFS_EBADF
fid is not a valid file descriptor.

GFS_EEXIST
name already exists within the subfile.

GFS_ENAMETOOLONG
name was too long.

GFS_ENOSPC
name was to be created, but either there was no room on the disk for the new fork, or the subfile already has SUBFILE_FORK_LIMIT forks (currently 356) in it.


Table of Contents