| UNDELETE(2) | System Calls Manual | UNDELETE(2) |
undelete — remove
whiteout
Standard C Library (libc, -lc)
#include
<unistd.h>
int
undelete(const
char *path);
Currently undelete works only when the
named object is a whiteout in a union file system. The system call removes
the whiteout causing any objects in a lower layer of the union stack to
become visible once more.
Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error.
The undelete() succeeds unless:
EACCES]EEXIST]EFAULT]EINVAL]EIO]ELOOP]ENAMETOOLONG]NAME_MAX}
characters, or an entire path name exceeded
{PATH_MAX} characters.ENOENT]ENOTDIR]EPERM]EROFS]An undelete function call first appeared
in 4.4BSD--Lite.
| November 28, 2008 | NetBSD 11.0 |