[BACK]Return to tcfs_getstatus.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tcfs

Annotation of src/usr.bin/tcfs/tcfs_getstatus.c, Revision 1.1.1.1

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