Fixed broken build of 2.4 Linux kernel module.
[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 thread_info  *next;
31     struct file_system  *fs;
32     int                 sock;
33     pid_t               ppid;
34     pthread_t           th_id;
35 };
36
37 struct fs_ctl{
38     struct credentials          cred;
39     struct fs_operations        *fs_ops;
40     struct file_system          *fs_available;
41     struct dir_cache            *cache;
42     struct list_head            *cfg;
43     void                        *dlhandle;
44     void                        *global_ctx;
45 };
46
47
48 struct fs_ctl *lu_fsctl_create(struct list_head*);
49 void lu_fsctl_destroy(struct fs_ctl*);
50 void lu_fsctl_run(struct fs_ctl*, int, char*);
51 int lu_fsctl_mount(struct fs_ctl*);
52
53 #endif
54
55
56