Table of Contents
gfs_delete_file - delete a file
#include <gfs.h>
int gfs_delete_file(char *filename);
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.
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).
GFS_ENOENT
filename does not exist.
Table of Contents