[linux-lvm] lvmsar & pvchange minor problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I found minor problems in lvm's commands with kernel 2.4.18 + LVM 1.0.5.

=======
Lvmsar command does not handle -h option.

# lvmsar -h
lvmsar -- invalid command line option "h"

# lvmsar --help
lvmsar -- invalid command line option "h"

# lvmsar -?

Logical Volume Manager 1.0.5
Heinz Mauelshagen, Sistina Software  15/07/2002 (IOP 10)

lvmsar -- Logical Volume Manager System Activity Data Reporter

Synopsis:
---------

lvmsar
        [-d/--debug]
        [-f/--full]
        [-h/--help]
        [-s/--stdin]
        [-v/--verbose]
        LogFilePath


=======
Vg_check_active function printed the following illgal debug messages 
when I executed "pvchange -d".

....
	<22> vg_check_active_all_vg -- CALLED
	<333> vg_status_get_count -- CALLED
	<333> vg_status_get_count -- LEAVING with ret: 2
	<333> vg_status_get_namelist -- CALLED
	<333> vg_status_get_namelist -- LEAVING with ret: 0
	<22> vg_check_active_all_vg -- LEAVING with ret: 0  ptr: ~H剤D^H^H枝D^H
	<22> pv_check_active -- CALLED
....

I made the following patch for this problem, and it seems 
to work. Any comments? 

---8<-----------8<----------8<----------8<----------8<----------
--- 1.0.5/tools/lib/vg_check_active.c.orig      Tue Sep 24 11:12:51 2002
+++ 1.0.5/tools/lib/vg_check_active.c   Tue Sep 24 11:13:21 2002
@@ -88,6 +88,6 @@
    else           ptr = NULL;

    debug_leave ( "vg_check_active_all_vg -- LEAVING with ret: %d  ptr: %s\n",
-                 ret, ptr);
+                 ret, (( ptr == NULL ) ? "null" : *ptr));
    return ptr;
 }
---8<-----------8<----------8<----------8<----------8<----------

Thanks,
Kaoru

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux