Whamcloud - gitweb
- fixes to the MDS: it now answers requests from the request test
[fs/lustre-release.git] / lustre / include / linux / obd_ext2.h
1 #ifndef _OBD_EXT2
2 #define _OBD_EXT2
3 /*
4  * Copyright (C) 2001  Cluster File Systems, Inc.
5  *
6  * This code is issued under the GNU General Public License.
7  * See the file COPYING in this distribution
8  */
9
10 #define OBD_EXT2_RUNIT           _IOWR('f', 61, long)
11
12 #include <linux/iobuf.h>
13
14 #ifndef OBD_EXT2_DEVICENAME
15 #define OBD_EXT2_DEVICENAME "obdext2"
16 #endif
17
18 struct ext2_obd {
19         struct super_block * e2_sb;
20         struct vfsmount *e2_vfsmnt;
21 };
22
23
24 /* development definitions */
25 extern struct obdfs_sb_info *obd_sbi;
26 extern struct file_operations *obd_fso;
27
28 /* ext2_obd.c */
29 extern struct obd_ops ext2_obd_ops;
30
31
32 #include <linux/ext2_fs.h>
33
34 /* super.c */
35 #ifdef EXT2_OBD_DEBUG
36 #  undef ext2_debug
37 #  define ext2_debug(format, a...) CDEBUG(D_EXT2, format, ## a)
38 #  define ext2_error ext2_warning
39 #  define ext2_panic ext2_warning
40 #  define ext2_warning(sb, func, format, a...) CDEBUG(D_WARNING, format, ## a)
41 #else
42 #  undef ext2_debug
43 #  define ext2_debug(format, a...) {}
44 #  define ext2_error(sb, func, format, a...) printk(KERN_ERR "%s: " format, func, ## a)
45 #  define ext2_panic(sb, func, format, a...) printk(KERN_CRIT "%s: " format, func, ## a)
46 #  define ext2_warning(sb, func, format, a...) printk(KERN_WARNING "%s: " format, func, ## a)
47 #endif
48
49 extern struct super_operations ext2_sops;
50 int obd_remount (struct super_block * sb, int * flags, char * data);
51 struct super_block * ext2_read_super (struct super_block * sb, void * data,
52                                       int silent);
53
54 /* punch.c */
55 void ext2_truncate (struct inode * inode);
56 int ext2_punch (struct inode * inode, loff_t start, size_t count);
57
58 #endif