1LFC_DELETE(3)                LFC Library Functions               LFC_DELETE(3)
2
3
4

NAME

6       lfc_delete - logically delete a LFC file entry in the name server
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "lfc_api.h"
11
12       int lfc_delete (const char *path)
13

DESCRIPTION

15       lfc_delete  logically deletes a LFC file entry in the name server.  The
16       file can be recovered by using lfc_undelete as long as  a  the  reclaim
17       utility has not been run on the corresponding tape volume.
18
19       path   specifies  the  logical  pathname  relative  to  the current LFC
20              directory or the full LFC pathname.
21

RETURN VALUE

23       This routine returns 0 if the operation was successful  or  -1  if  the
24       operation failed. In the latter case, serrno is set appropriately.
25

ERRORS

27       EPERM        path is a directory.
28
29       ENOENT       The named file does not exist or is a null pathname.
30
31       EACCES       Search  permission  is  denied  on a component of the path
32                    prefix or write permission is denied on the parent  direcā€
33                    tory or the parent has the sticky bit S_ISVTX set and
34
35                      the  effective  user  ID of the requestor does not match
36                      the owner ID of the file and
37
38                      the effective user ID of the requestor  does  not  match
39                      the owner ID of the directory and
40
41                      the file is not writable by the requestor and
42
43                      the  requestor does not have ADMIN privilege in the Cupv
44                      database.
45
46       EFAULT       path is a NULL pointer.
47
48       ENOTDIR      A component of path prefix is not a directory.
49
50       ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length  of
51                    a path component exceeds CA_MAXNAMELEN.
52
53       SENOSHOST    Host unknown.
54
55       SENOSSERV    Service unknown.
56
57       SECOMERR     Communication error.
58
59       ENSNACT      Name server is not running or is being shutdown.
60

SEE ALSO

62       Castor_limits(4), lfc_chdir(3), lfc_undelete(3), Cupvlist(1)
63

AUTHOR

65       LCG Grid Deployment Team
66
67
68
69LFC                      $Date: 2002/10/16 06:25:40 $            LFC_DELETE(3)
Impressum