Table of Contents

NAME

gfs_delete_file - delete a file

SYNOPSIS

#include <gfs.h>

int gfs_delete_file(char *filename);

DESCRIPTION

gfs_delete_file attempts to delete filename. If one or more compute nodes have the file opened, the file is not actually deleted: it is marked for deletion, and only when the last node has closed the file is it deleted. This call automatically deletes all of a file's subfiles and forks as well.

RETURN VALUE

gfs_delete_file returns 0 if the file is successfully deleted or marked for deletion, or -1 if an error occurred (in which case, gfs_errno is set appropriately).

ERRORS

GFS_ENOENT
filename does not exist.


Table of Contents