2 * Copyright (c) 1990,1994 Regents of The University of Michigan.
3 * All Rights Reserved. See COPYRIGHT.
7 #define AFPD_VOLUME_H 1
10 #include <sys/types.h>
11 #include <netatalk/endian.h>
13 #include <atalk/volume.h>
14 #include <atalk/cnid.h>
15 #include <atalk/unicode.h>
22 extern struct vol *getvolbyvid (const u_int16_t);
23 extern int ustatfs_getvolspace (const struct vol *,
24 VolSpace *, VolSpace *,
26 extern void setvoltime (AFPObj *, struct vol *);
27 extern int pollvoltime (AFPObj *);
28 extern void load_volumes (AFPObj *obj);
29 extern int readvolfile(AFPObj *obj,
30 struct afp_volume_name *p1,
33 struct passwd *pwent);
34 extern const struct vol *getvolumes(void);
35 extern void unload_volumes_and_extmap(void);
36 extern char *get_uuid(const AFPObj *obj, const char *volname);
39 int afp_openvol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
40 int afp_getvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
41 int afp_setvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
42 int afp_getsrvrparms (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
43 int afp_closevol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
45 /* netatalk functions */
46 extern void close_all_vol (void);
48 struct vol *current_vol; /* last volume from getvolbyvid() */