Messages in this thread Patch in this message | | | Date | Mon, 21 Jun 1999 16:27:46 -0300 (EST) | From | Marcelo Tosatti <> | 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 | |