http://prdownloads.sourceforge.net/lufs/lufs-0.9.7.tar.gz?download
[lufs.git] / lufsd / fsctl.h
1 /*
2  * fsctl.h
3  * Copyright (C) 2002 Florin Malita <mali@go.ro>
4  *
5  * This file is part of LUFS, a free userspace filesystem implementation.
6  * See http://lufs.sourceforge.net/ for updates.
7  *
8  * LUFS is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * LUFS is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  */
22
23 #ifndef _FSCTL_H_
24 #define _FSCTL_H_
25
26 struct fs_operations;
27 struct file_system;
28
29 struct thread_info{
30     struct file_system  *fs;
31     int                 sock;
32     pid_t               ppid;
33 };
34
35 struct fs_ctl{
36     struct credentials          cred;
37     struct fs_operations        *fs_ops;
38     struct file_system          *fs_available;
39     struct dir_cache            *cache;
40     struct list_head            *cfg;
41     void                        *dlhandle;
42     void                        *global_ctx;
43 };
44
45
46 struct fs_ctl *lu_fsctl_create(struct list_head*);
47 void lu_fsctl_destroy(struct fs_ctl*);
48 void lu_fsctl_run(struct fs_ctl*, int, char*);
49 int lu_fsctl_mount(struct fs_ctl*);
50
51 #endif
52
53
54