Annotation of src/usr.bin/tcfs/tcfs_getstatus.c, Revision 1.3
1.3 ! aaron 1: /* $OpenBSD: tcfs_getstatus.c,v 1.2 2000/06/19 20:35:47 fgsch Exp $ */
1.2 fgsch 2:
1.1 provos 3: /*
4: * Transparent Cryptographic File System (TCFS) for NetBSD
5: * Author and mantainer: Luigi Catuogno [luicat@tcfs.unisa.it]
6: *
7: * references: http://tcfs.dia.unisa.it
8: * tcfs-bsd@tcfs.unisa.it
9: */
10:
11: /*
12: * Base utility set v0.1
13: */
14:
15: #include <ctype.h>
16: #include <pwd.h>
17: #include <unistd.h>
18: #include <sys/types.h>
19: #include <sys/param.h>
20: #include <sys/mount.h>
21: #include <des.h>
22: #include <miscfs/tcfs/tcfs.h>
23: #include <miscfs/tcfs/tcfs_cmd.h>
24: #include "tcfsdefines.h"
25: #include <sys/ucred.h>
26:
27:
28: int
29: tcfs_getstatus(char *filesystem, struct tcfs_status *st)
30: {
31: int i;
32: struct tcfs_args x;
33:
34: if (!tcfs_verify_fs(filesystem))
35: return (-1);
36:
37: x.cmd = TCFS_GET_STATUS;
1.3 ! aaron 38: i = tcfs_callfunction(filesystem, &x);
1.1 provos 39: *st = x.st;
40: return (i);
41: }