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 volume operations used by the AFS user
19 * ------------------------ Exported functions -----------------------
21 extern afs_int32 uss_vol_GetServer();
24 * Given the string name of a desired host, find its address.
27 * a_name : String name of desired host.
30 * Host address in network byte order.
33 extern afs_int32 uss_vol_GetPartitionID();
36 * Get partition id from a name.
39 * a_name : Name of the partition ID.
42 * Numeric partition name, or -1 on failure.
45 extern afs_int32 uss_vol_CreateVol();
48 * Create a volume, set its disk quota, and mount it at the
49 * given place. Also, set the mountpoint's ACL.
52 * char *a_volname : Volume name to mount.
53 * char *a_server : FileServer housing the volume
54 * char *a_partition : Partition housing the volume
55 * char *a_quota : Initial quota
56 * char *a_mpoint : Mountpoint to assign it
57 * char *a_owner : Name of mountpoint's owner
58 * char *a_acl : ACL for mountpoint.
61 * 0 if everything went well,
62 * 1 if there was a problem in the routine itself, or
63 * Other error code if problem occurred in lower-level call.
66 extern afs_int32 uss_vol_DeleteVol();
69 * Delete the given volume.
72 * char *a_volName : Name of the volume to delete.
73 * afs_int32 a_volID : Numerical volume ID.
74 * char *a_servName : Name of the server hosting the volume.
75 * afs_int32 a_servID : Numerical server ID.
76 * char *a_partName : Name of the home server partition.
77 * afs_int32 a_volID : Numerical partition ID.
80 * 0 if everything went well,
81 * 1 if there was a problem in the routine itself, or
82 * Other error code if problem occurred in lower-level call.
85 extern afs_int32 uss_vol_GetVolInfoFromMountPoint();
88 * Given a mountpoint, pull out the name of the volume mounted
89 * there, along with the name of the FileServer and partition
90 * hosting it, putting them all in common locations.
93 * char *a_mountpoint : Name of the mountpoint.
96 * 0 if everything went well,
97 * 1 if there was a problem in the routine itself, or
98 * Other error code if problem occurred in lower-level call.
101 extern afs_int32 uss_vol_DeleteMountPoint();
104 * Given a mountpoint, nuke it.
107 * char *a_mountpoint : Name of the mountpoint.
110 * 0 if everything went well,
111 * 1 if there was a problem in the routine itself, or
112 * Other error code if problem occurred in lower-level call.
115 #endif /* _USS_VOL_H_ */