Whamcloud - gitweb
smash the HEAD with the contents of b_cmd. HEAD_PRE_CMD_SMASH and
[fs/lustre-release.git] / lustre / smfs / sm_fs.c
index 19283ae..d07facb 100644 (file)
@@ -1,31 +1,12 @@
-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
+/*
+ *  fs/smfs/sm_fs.c
  *
- *  Copyright (C) 2004 Cluster File Systems, Inc.
- *
- *   This file is part of Lustre, http://www.lustre.org.
- *
- *   Lustre is free software; you can redistribute it and/or
- *   modify it under the terms of version 2 of the GNU General Public
- *   License as published by the Free Software Foundation.
- *
- *   Lustre is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with Lustre; if not, write to the Free Software
- *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *  A storage management file system.
  *
  */
-
-#define DEBUG_SUBSYSTEM S_SM
-
-#ifndef EXPORT_SYMTAB
 #define EXPORT_SYMTAB
-#endif
-
+#define DEBUG_SUBSYSTEM S_SM
+                                                                                                                                                                                                     
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/stat.h>
 #include <linux/unistd.h>
 #include <linux/miscdevice.h>
-#include <linux/obd_class.h>
-#include <linux/obd_support.h>
-#include <linux/lustre_lib.h>
-#include <linux/lustre_idl.h>
-#include <linux/lustre_smfs.h>
-
-#include "smfs_internal.h"
+#include <linux/lustre_idl.h>                                                                                                                                                                                                     
+#include "smfs_internal.h" 
 
 int sm_stack = 0;
 long sm_kmemory = 0;
 
+                                                                                                                                                                                                     
 MODULE_AUTHOR("Peter J. Braam <braam@cs.cmu.edu>");
 MODULE_DESCRIPTION("Smfs file system filters v0.01");
-MODULE_LICENSE("GPL");
-
+                                                                                                                                                                                                     
 extern int init_smfs(void);
 extern int cleanup_smfs(void);
-
+extern int init_snap_sysctl(void);
+                                                                                                                                                                                                     
 static int __init smfs_init(void)
 {
         int err;
-
-        if ( (err = init_smfs_psdev()) ) {
-                printk("Error initializing smfs_psdev, %d\n", err);
-                return -EINVAL;
-        }
-
+                                                                                                                                                                                                     
         if ( (err = init_smfs()) ) {
-                printk("Error initializing smfs, %d\n", err);
+                printk("Error initializing snapfs, %d\n", err);
                 return -EINVAL;
         }
-
+                                                                                                                                                                                                     
         if ( (err = init_smfs_proc_sys()) ) {
-                printk("Error initializing smfs proc sys, %d\n", err);
+                printk("Error initializing snapfs proc sys, %d\n", err);
                 return -EINVAL;
         }
-
+                                                                                                                                                                                                     
         return 0;
 }
-
+                                                                                                                                                                                                     
 static void __exit smfs_cleanup(void)
 {
-        cleanup_smfs();
-        smfs_cleanup_psdev();
+       cleanup_smfs();
 }
 module_init(smfs_init);
 module_exit(smfs_cleanup);
+