4 * Copyright (C) 2001 Cluster File Systems, Inc.
6 * This code is issued under the GNU General Public License.
7 * See the file COPYING in this distribution
10 #define OBD_EXT2_RUNIT _IOWR('f', 61, long)
12 #include <linux/iobuf.h>
14 #ifndef OBD_EXT2_DEVICENAME
15 #define OBD_EXT2_DEVICENAME "obdext2"
19 struct super_block * ext2_sb;
23 /* development definitions */
24 extern struct obdfs_sb_info *obd_sbi;
25 extern struct file_operations *obd_fso;
28 extern struct obd_ops ext2_obd_ops;
31 #include <linux/ext2_fs.h>
36 # define ext2_debug(format, a...) CDEBUG(D_EXT2, format, ## a)
37 # define ext2_error ext2_warning
38 # define ext2_panic ext2_warning
39 # define ext2_warning(sb, func, format, a...) CDEBUG(D_WARNING, format, ## a)
42 # define ext2_debug(format, a...) {}
43 # define ext2_error(sb, func, format, a...) printk(KERN_ERR "%s: " format, func, ## a)
44 # define ext2_panic(sb, func, format, a...) printk(KERN_CRIT "%s: " format, func, ## a)
45 # define ext2_warning(sb, func, format, a...) printk(KERN_WARNING "%s: " format, func, ## a)
48 extern struct super_operations ext2_sops;
49 int obd_remount (struct super_block * sb, int * flags, char * data);
50 struct super_block * ext2_read_super (struct super_block * sb, void * data,
54 void ext2_truncate (struct inode * inode);
55 int ext2_punch (struct inode * inode, loff_t start, size_t count);