UNDELETE(2) | System Calls Manual | UNDELETE(2) |
undelete
— attempt
to recover a deleted file
Standard C Library (libc, -lc)
#include
<unistd.h>
int
undelete
(const
char *path);
The
undelete
()
system call attempts to recover the deleted file named by
path. Currently, this 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.
Eventually, the
undelete
()
functionality may be expanded to other file systems able to recover deleted
files such as the log-structured file system.
The undelete
() function returns the
value 0 if successful; otherwise the value -1 is returned and
the global variable errno is set to indicate the
error.
The undelete
() succeeds unless:
ENOTDIR
]ENAMETOOLONG
]EEXIST
]ENOENT
]EACCES
]EACCES
]ELOOP
]EPERM
]EINVAL
]..
’.EIO
]EROFS
]EFAULT
]The undelete
() system call first appeared
in 4.4BSD-Lite.
January 22, 2006 | Debian |