1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * lustre/lib/fsfilt_smfs.c
5 * Lustre filesystem abstraction routines
7 * Copyright (C) 2004 Cluster File Systems, Inc.
8 * Author: Wang Di <wangdi@clusterfs.com>
10 * This file is part of Lustre, http://www.lustre.org.
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.
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.
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.
26 #define DEBUG_SUBSYSTEM S_FILTER
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>
42 extern struct fsfilt_operations * get_smfs_fs_ops(void);
44 static int __init fsfilt_smfs_init(void)
47 struct fsfilt_operations * fs_ops = get_smfs_fs_ops();
49 rc = fsfilt_register_ops(fs_ops);
53 static void __exit fsfilt_smfs_exit(void)
55 fsfilt_unregister_ops(get_smfs_fs_ops());
58 module_init(fsfilt_smfs_init);
59 module_exit(fsfilt_smfs_exit);
61 MODULE_AUTHOR("Cluster File Systems, Inc. <info@clusterfs.com>");
62 MODULE_DESCRIPTION("Lustre SMFS Filesystem Helper v0.1");
63 MODULE_LICENSE("GPL");