lkml.org 
[lkml]   [1999]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 2.2.10ac3]
Oops, forgot to attach the patch.
Sorry.

- Marcelo
--- lvm.c.orig Mon Jun 21 16:10:04 1999
+++ lvm.c Mon Jun 21 16:12:33 1999
@@ -7,6 +7,10 @@
* April-May,July-August,November 1998
* January,February 1999
*
+ * Changes :
+ * Marcelo Tosatti <marcelo@conectiva.com.br>
+ * #ifdef minor fixes
+ *
*
* LVM driver is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -329,7 +333,10 @@
printk(KERN_ERR "%s -- unregister_chrdev failed\n", lvm_name);
return -EIO;
}
+
+#if defined(CONFIG_LVM_PROC_FS) && defined(CONFIG_PROC_FS)
proc_register(&proc_root, &lvm_proc_entry);
+#endif

#ifdef DEBUG
printk(KERN_INFO "%s -- registered\n", lvm_name);
@@ -382,7 +389,9 @@
blk_size[LVM_BLOCK_MAJOR] = NULL;
blksize_size[LVM_BLOCK_MAJOR] = NULL;

+#if defined(CONFIG_LVM_PROC_FS) && defined(CONFIG_PROC_FS)
proc_unregister(&proc_root, lvm_proc_entry.low_ino);
+#endif

if (unregister_chrdev(LVM_CHAR_MAJOR, lvm_name) < 0) {
printk(KERN_ERR "%s -- unregister_chrdev failed\n", lvm_name);
@@ -480,7 +489,6 @@
#endif
lv_status_byname_req_t lv_status_byname_req;
lv_status_byindex_req_t lv_status_byindex_req;
- ulong flags;
spinlock_t lvm_lock = SPIN_LOCK_UNLOCKED;

#ifdef DEBUG_IOCTL
\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.023 / U:1.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site