Whamcloud - gitweb
b=7049
[fs/lustre-release.git] / lustre / lvfs / fsfilt_smfs.c
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  *  lustre/lib/fsfilt_smfs.c
5  *  Lustre filesystem abstraction routines
6  *
7  *  Copyright (C) 2004 Cluster File Systems, Inc.
8  *   Author: Wang Di <wangdi@clusterfs.com>
9  *
10  *   This file is part of Lustre, http://www.lustre.org.
11  *
12  *   Lustre is free software; you can redistribute it and/or
13  *   modify it under the terms of version 2 of the GNU General Public
14  *   License as published by the Free Software Foundation.
15  *
16  *   Lustre is distributed in the hope that it will be useful,
17  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
18  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  *   GNU General Public License for more details.
20  *
21  *   You should have received a copy of the GNU General Public License
22  *   along with Lustre; if not, write to the Free Software
23  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24  */
25
26 #define DEBUG_SUBSYSTEM S_FILTER
27
28 #include <linux/fs.h>
29 #include <linux/jbd.h>
30 #include <linux/slab.h>
31 #include <linux/pagemap.h>
32 #include <linux/quotaops.h>
33 #include <linux/version.h>
34 #include <libcfs/kp30.h>
35 #include <linux/lustre_fsfilt.h>
36 //#include <linux/lustre_smfs.h>
37 #include <linux/obd.h>
38 #include <linux/obd_class.h>
39 #include <linux/module.h>
40 #include <linux/init.h>
41
42 extern struct fsfilt_operations * get_smfs_fs_ops(void);
43
44 static int __init fsfilt_smfs_init(void)
45 {
46         int rc = -ENOSYS;
47         struct fsfilt_operations * fs_ops = get_smfs_fs_ops();
48         
49         rc = fsfilt_register_ops(fs_ops);
50         return rc;
51 }
52
53 static void __exit fsfilt_smfs_exit(void)
54 {
55         fsfilt_unregister_ops(get_smfs_fs_ops());
56 }
57
58 module_init(fsfilt_smfs_init);
59 module_exit(fsfilt_smfs_exit);
60
61 MODULE_AUTHOR("Cluster File Systems, Inc. <info@clusterfs.com>");
62 MODULE_DESCRIPTION("Lustre SMFS Filesystem Helper v0.1");
63 MODULE_LICENSE("GPL");