diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-01-08 11:50:08 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-01-08 11:50:08 +0000 |
commit | 9080c79e94aa97fe228b3443b11e999bba1413d7 (patch) | |
tree | 89c27d5f5814b9e78b46a75919d6044cfa54e745 /kernel/util.c | |
parent | 95a4b5e7e35052345c1d345fee1f77d331fd3e35 (diff) | |
download | libfuse-9080c79e94aa97fe228b3443b11e999bba1413d7.tar.gz |
cleanup
Diffstat (limited to 'kernel/util.c')
-rw-r--r-- | kernel/util.c | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/kernel/util.c b/kernel/util.c deleted file mode 100644 index 57375f4..0000000 --- a/kernel/util.c +++ /dev/null @@ -1,58 +0,0 @@ -/* - FUSE: Filesystem in Userspace - Copyright (C) 2001-2004 Miklos Szeredi <miklos@szeredi.hu> - - This program can be distributed under the terms of the GNU GPL. - See the file COPYING. -*/ - -#include "fuse_i.h" - -#include <linux/init.h> -#include <linux/module.h> - -MODULE_AUTHOR("Miklos Szeredi <miklos@szeredi.hu>"); -MODULE_DESCRIPTION("Filesystem in Userspace"); -#ifdef MODULE_LICENSE -MODULE_LICENSE("GPL"); -#endif - -spinlock_t fuse_lock; - -int __init fuse_init(void) -{ - int res; - - printk("fuse init (API version %i.%i)\n", - FUSE_KERNEL_VERSION, FUSE_KERNEL_MINOR_VERSION); -#ifndef FUSE_MAINLINE - printk("fuse distribution version: %s\n", FUSE_VERSION); -#endif - - spin_lock_init(&fuse_lock); - res = fuse_fs_init(); - if (res) - goto err; - - res = fuse_dev_init(); - if (res) - goto err_fs_cleanup; - - return 0; - - err_fs_cleanup: - fuse_fs_cleanup(); - err: - return res; -} - -void __exit fuse_exit(void) -{ - printk(KERN_DEBUG "fuse exit\n"); - - fuse_fs_cleanup(); - fuse_dev_cleanup(); -} - -module_init(fuse_init); -module_exit(fuse_exit); |