2
* Copyright 2000, International Business Machines Corporation and others.
5
* This software has been released under the terms of the IBM Public
6
* License. For details, see the LICENSE file in the top-level source
7
* directory or online at http://www.openafs.org/dl/license10.html
11
* Interface to the AFS system operations exported by the
19
* --------------------- Exported definitions ---------------------
21
#define USS_FS_MAX_SIZE 2048
25
* ---------------------- Exported variables ----------------------
27
extern char *uss_fs_InBuff; /*Cache Manager input buff*/
28
extern char *uss_fs_OutBuff; /*Cache Manager output buff*/
32
* ------------------------ Exported functions -----------------------
34
extern afs_int32 uss_fs_GetACL();
37
* Given the pathname for a directory, return its ACL.
40
* char *a_dirPath : Directory pathname.
41
* char *a_aclBuff : Ptr to the buffer in which to put
42
* the directory's ACL.
43
* afs_int32 a_aclBuffBytes : Size of the above.
46
* 0 if everything went well,
47
* -1 otherwise, with errno set to the error.
50
extern afs_int32 uss_fs_SetACL();
53
* Set the ACL on the specified directory.
56
* char *a_dirpath : Directory pathname.
57
* char *a_aclBuff : Ptr to the buffer from which to get
58
* the directory's ACL.
59
* afs_int32 a_aclBuffBytes : Size of the above.
62
* 0 if everything went well,
63
* -1 otherwise, with errno set to the error.
66
extern afs_int32 uss_fs_GetVolStat();
69
* Given the pathname of an AFS mountpoint, find out what you
70
* can about the volume mounted there.
73
* char *a_mountpoint : Mountpoint pathname.
74
* char *a_volStatBuff : Buffer to hold the status.
75
* afs_int32 a_volStatBuffBytes : Length of above.
78
* 0 if everything went well,
79
* -1 otherwise, with errno set to the error.
82
extern afs_int32 uss_fs_SetVolStat();
85
* Given the pathname of an AFS mountpoint, set the status info
86
* for the volume mounted there.
89
* char *a_mountpoint : Mountpoint pathname.
90
* char *a_volStatBuff : Buffer holding the status.
91
* afs_int32 a_volStatBuffBytes : Length of above.
94
* 0 if everything went well,
95
* -1 otherwise, with errno set to the error.
98
extern afs_int32 uss_fs_CkBackups();
101
* Make sure the CacheManager doesn't have any stale volume
108
* 0 if everything went well,
109
* -1 otherwise, with errno set to the error.
112
extern afs_int32 uss_fs_MkMountPoint();
115
* Given the name of the volume, the cell it lives in,
116
* whether we want the read/write version mounted, and
117
* the pathname for the desired mountpoint, go ahead and
121
* char *a_volname : Name of volume to mount.
122
* char *a_cellname : Name of cell where volume lives.
123
* afs_int32 a_rw : Read/write mount?
124
* char *a_mountpoint : Name desired for the mountpoint.
127
* 0 if everything went well,
128
* -1 otherwise, with errno set to the error.
131
extern afs_int32 uss_fs_RmMountPoint();
134
* Delete the given mountpoint.
137
* char *a_mountpoint : Name of the mountpoint to delete.
140
* 0 if everything went well,
141
* -1 otherwise, with errno set to the error.
144
#endif /* _USS_FS_H_ */