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(char *a_dirPath
, char *a_aclBuff
,
35 afs_int32 a_aclBuffBytes
);
38 * Given the pathname for a directory, return its ACL.
41 * char *a_dirPath : Directory pathname.
42 * char *a_aclBuff : Ptr to the buffer in which to put
43 * the directory's ACL.
44 * afs_int32 a_aclBuffBytes : Size of the above.
47 * 0 if everything went well,
48 * -1 otherwise, with errno set to the error.
51 extern afs_int32
uss_fs_SetACL(char *a_dirPath
, char *a_aclBuff
,
52 afs_int32 a_aclBuffBytes
);
55 * Set the ACL on the specified directory.
58 * char *a_dirpath : Directory pathname.
59 * char *a_aclBuff : Ptr to the buffer from which to get
60 * the directory's ACL.
61 * afs_int32 a_aclBuffBytes : Size of the above.
64 * 0 if everything went well,
65 * -1 otherwise, with errno set to the error.
68 extern afs_int32
uss_fs_GetVolStat(char *a_mountpoint
, char *a_volStatBuff
,
69 afs_int32 a_volStatBuffBytes
);
72 * Given the pathname of an AFS mountpoint, find out what you
73 * can about the volume mounted there.
76 * char *a_mountpoint : Mountpoint pathname.
77 * char *a_volStatBuff : Buffer to hold the status.
78 * afs_int32 a_volStatBuffBytes : Length of above.
81 * 0 if everything went well,
82 * -1 otherwise, with errno set to the error.
85 extern afs_int32
uss_fs_SetVolStat(char *a_mountpoint
, char *a_volStatBuff
,
86 afs_int32 a_volStatBuffBytes
);
89 * Given the pathname of an AFS mountpoint, set the status info
90 * for the volume mounted there.
93 * char *a_mountpoint : Mountpoint pathname.
94 * char *a_volStatBuff : Buffer holding the status.
95 * afs_int32 a_volStatBuffBytes : Length of above.
98 * 0 if everything went well,
99 * -1 otherwise, with errno set to the error.
102 extern afs_int32
uss_fs_CkBackups(void);
105 * Make sure the CacheManager doesn't have any stale volume
112 * 0 if everything went well,
113 * -1 otherwise, with errno set to the error.
116 extern afs_int32
uss_fs_MkMountPoint(char *a_volname
, char *a_cellname
,
117 afs_int32 a_rw
, char *a_mountpoint
);
120 * Given the name of the volume, the cell it lives in,
121 * whether we want the read/write version mounted, and
122 * the pathname for the desired mountpoint, go ahead and
126 * char *a_volname : Name of volume to mount.
127 * char *a_cellname : Name of cell where volume lives.
128 * afs_int32 a_rw : Read/write mount?
129 * char *a_mountpoint : Name desired for the mountpoint.
132 * 0 if everything went well,
133 * -1 otherwise, with errno set to the error.
136 extern afs_int32
uss_fs_RmMountPoint(char *a_mountpoint
);
139 * Delete the given mountpoint.
142 * char *a_mountpoint : Name of the mountpoint to delete.
145 * 0 if everything went well,
146 * -1 otherwise, with errno set to the error.
149 extern int uss_fs_UnlogToken(char *celln
);
151 #endif /* _USS_FS_H_ */