undelete.2 (84306) | undelete.2 (107788) |
---|---|
1.\" Copyright (c) 1994 2.\" Jan-Simon Pendry 3.\" The Regents of the University of California. All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31.\" SUCH DAMAGE. 32.\" 33.\" @(#)undelete.2 8.4 (Berkeley) 10/18/94 | 1.\" Copyright (c) 1994 2.\" Jan-Simon Pendry 3.\" The Regents of the University of California. All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31.\" SUCH DAMAGE. 32.\" 33.\" @(#)undelete.2 8.4 (Berkeley) 10/18/94 |
34.\" $FreeBSD: head/lib/libc/sys/undelete.2 84306 2001-10-01 16:09:29Z ru $ | 34.\" $FreeBSD: head/lib/libc/sys/undelete.2 107788 2002-12-12 17:26:04Z ru $ |
35.\" 36.Dd October 18, 1994 37.Dt UNDELETE 2 38.Os 39.Sh NAME 40.Nm undelete 41.Nd attempt to recover a deleted file 42.Sh LIBRARY 43.Lb libc 44.Sh SYNOPSIS 45.In unistd.h 46.Ft int 47.Fn undelete "const char *path" 48.Sh DESCRIPTION 49The 50.Fn undelete 51function attempts to recover the deleted file named by 52.Fa path . 53Currently, this works only when the named object | 35.\" 36.Dd October 18, 1994 37.Dt UNDELETE 2 38.Os 39.Sh NAME 40.Nm undelete 41.Nd attempt to recover a deleted file 42.Sh LIBRARY 43.Lb libc 44.Sh SYNOPSIS 45.In unistd.h 46.Ft int 47.Fn undelete "const char *path" 48.Sh DESCRIPTION 49The 50.Fn undelete 51function attempts to recover the deleted file named by 52.Fa path . 53Currently, this works only when the named object |
54is a whiteout in a union filesystem. | 54is a whiteout in a union file system. |
55The system call removes the whiteout causing 56any objects in a lower layer of the 57union stack to become visible once more. 58.Pp 59Eventually, the 60.Fn undelete | 55The system call removes the whiteout causing 56any objects in a lower layer of the 57union stack to become visible once more. 58.Pp 59Eventually, the 60.Fn undelete |
61functionality may be expanded to other filesystems able to recover 62deleted files such as the log-structured filesystem. | 61functionality may be expanded to other file systems able to recover 62deleted files such as the log-structured file system. |
63.Sh RETURN VALUES 64.Rv -std undelete 65.Sh ERRORS 66The 67.Fn undelete 68succeeds unless: 69.Bl -tag -width Er 70.It Bq Er ENOTDIR --- 34 unchanged lines hidden --- | 63.Sh RETURN VALUES 64.Rv -std undelete 65.Sh ERRORS 66The 67.Fn undelete 68succeeds unless: 69.Bl -tag -width Er 70.It Bq Er ENOTDIR --- 34 unchanged lines hidden --- |