3 * Copyright (C) 2002 Florin Malita <mali@go.ro>
5 * This file is part of LUFS, a free userspace filesystem implementation.
6 * See http://lufs.sourceforge.net/ for updates.
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.
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.
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
26 #include <linux/list.h>
28 #include <linux/spinlock.h>
30 #include "../../../include/lufs/proto.h"
38 #define TRACE(x...) do { printk(KERN_INFO "(%s) - ", __func__); printk(x); } while(0)
39 #define WARN(x...) do { printk(KERN_ERR "(%s) - ", __func__); printk(x); } while(0)
41 #define TRACE(x...) do {} while(0)
42 #define WARN(x...) do {} while(0)
46 #define VERBOSE(x...) do { printk(KERN_INFO "(%s) - ", __func__); printk(x); } while(0)
48 #define VERBOSE(x...) do {} while(0)
51 #define ERROR(x...) do { printk(KERN_ERR "(%s) - ", __func__); printk(x); } while(0)
53 #define GET_INFO(sb) ((struct lufs_sb_info*)sb->s_fs_info)
55 #define LU_MAXPATHLEN 1024
56 #define LU_MAXTRIES 10
59 #define LU_MAGIC 0xfade
60 #define LU_MAXAGE HZ*5
65 #define LU_BLOCKSIZE 512
66 #define LU_BLOCKSIZEBITS 9
71 __kernel_mode_t fmode;
72 __kernel_mode_t dmode;
78 struct list_head slots;
79 struct lufs_config config;
81 char server_socket[UNIX_PATH_MAX];
83 char root[UNIX_PATH_MAX];