Last change
on this file since 2754 was 2635, checked in by Bruno Cornec, 14 years ago |
svn merge -r 2586:2634 svn+ssh://bruno@svn.mondorescue.org/mondo/svn/mondorescue/branches/2.2.9
- Avoids error messages from stat in analyze-my-lvm
- Avoid perl warning by removing non-exitent dirs from @INC in mindi-get-perl-modules
r3744@localhost: bruno | 2010-03-16 01:44:33 +0100
- Fix a bug on Mandriva modules analysis (at least)
(Backport from mindi 2.1.0)
- Try to improve exclusion of binded /proc mount with "none" fs type exclusion Cf: #397
- Adds gmane mirror on the support page of the web site.
- More website improvements based on Tom Metro feedbacks
- Adds Nable ML archive
- For gmane prefer the threaded view to the blog one.
- Fix an initialization bug for network protocol in interactive mode (was NULL and not NFS by default)
- Put an explicit notice of MondoRescue's license: GPLv2 or later (as per Hugo's notice in sources)
- Adds tee to deplist
- Fix #412 by supporting grub-install.unsupported for OpenSuSE and solving an issue with the parameter passed to grub for device which should be a device name, not a partition.
- Fix #413 where list of devices was not re-initialized correctly in a loop (Michael Shapiro)
- Fix #415 by avoiding integration of unknown devices report from pvscan (Mike Shapiro)
- Fix #414 by adding a function GetPVsForLV to remove PVs from excluded LVs (Mike Shapiro)
- Fixes for #414: remove comments from grub conf file if used and improve grub conf file generation
- Fix a typo (Mike Shapiro)
- Improved msg for USB device creation
- Mondoarchive should not try to cerate a cmp binary if it doesn't exist.
- Fix a bug on ia64 where the boot image generated was removed before use in mondo
- Avoid to have multiple similar calls to mkisofs by using macros
r3946@localhost: bruno | 2010-05-04 19:17:51 +0200
- Solves an issue with usage of -V option in mkiofs wrongly placed
- netfs_proto should be initialized in every case, not just in DR (should solve remaining NULL reports)
- Integrate Michael Shapiro's patch on Xen Kernel support for RHEL 5 (only atm) and fixes #418 (Michael Shapiro)
- Fox a typo in a Web page
- Precise that GPL is v2+ (as per Hugo's wish)
- Improve display of messages (removes extra \n) and replace a stract with "" with " ". trying to debug #421
- Remove a wrong usage of mr_strcat with exclude_path in the 2.2.9 version (probably cause of #421)
- Fix strcat call !
|
-
Property svn:executable
set to
*
|
File size:
2.1 KB
|
Rev | Line | |
---|
[2213] | 1 | #!/bin/bash
|
---|
| 2 | #
|
---|
| 3 | # $Id$
|
---|
| 4 | #
|
---|
| 5 | # Mesures quality improvement of mondorescue project
|
---|
| 6 | #
|
---|
| 7 |
|
---|
| 8 | # Adapt to your needs
|
---|
| 9 | dname=`dirname $0`
|
---|
| 10 | prem=`echo $dname |cut -c1`
|
---|
| 11 | if [ ${prem} == "/" ]; then
|
---|
| 12 | export TOOLHOME=$dname
|
---|
| 13 | else
|
---|
| 14 | export TOOLHOME=${PWD}/$dname
|
---|
| 15 | fi
|
---|
| 16 |
|
---|
| 17 | d=$TOOLHOME/..
|
---|
| 18 |
|
---|
| 19 | if [ $# -gt 0 ]; then
|
---|
| 20 | if [ -d $1 ]; then
|
---|
| 21 | d=$1
|
---|
| 22 | fi
|
---|
| 23 | fi
|
---|
| 24 |
|
---|
| 25 | echo "Working on $d"
|
---|
| 26 | echo " "
|
---|
| 27 | cd $d
|
---|
| 28 |
|
---|
| 29 | # How many sprintf/strcat/strcpy vs asprintf are they
|
---|
[2635] | 30 | for s in asprintf mr_asprintf sprintf snprintf strcat strncat mr_strcat strcpy strncpy fgets malloc mr_malloc malloc_string getline mr_getline ARBITRARY_MAXIMUM MAX_TAPECATALOG_ENTRIES MAX_MOUNTLIST_ENTRIES MAXIMUM_RAID_DEVS MAXIMUM_ADDITIONAL_RAID_VARS MAXIMUM_DISKS_PER_RAID_DEV MAX_TAPECAT_FNAME_LEN MAX_NOOF_MEDIA MAX_NEWT_COMMENT_LEN MAX_NOOF_SETS_HERE MAX_STR_LEN getcwd goto free mr_free paranoid_free paranoid_system mr_system assert static; do
|
---|
[2301] | 31 | echo "mondorescue $s usage : "
|
---|
[2213] | 32 | tot=0
|
---|
[2445] | 33 | for i in `find . -name '*.c' -o -name '*.h' | egrep -v '\.svn|/\*' | xargs grep -r -c -w $s | egrep -v ":0$"`; do
|
---|
[2213] | 34 | echo " === $i"
|
---|
| 35 | ((tot=$tot+`echo $i | cut -d: -f2`))
|
---|
| 36 | done
|
---|
| 37 | echo "total $s usage : $tot"
|
---|
| 38 | done
|
---|
| 39 |
|
---|
| 40 | echo " "
|
---|
| 41 | echo "Qualimetry: "
|
---|
[2445] | 42 | pbg -w asprintf | grep -vE 'quality|/\*|asprintf\(&' > /tmp/mondo.quality
|
---|
[2213] | 43 | cat /tmp/mondo.quality
|
---|
[2301] | 44 | echo "mondorescue uses : `cat /tmp/mondo.quality | wc -l` asprintf without &"
|
---|
[2445] | 45 | pbg -w getline | grep -vE 'quality|/\*|getline\(&' > /tmp/mondo.quality
|
---|
[2213] | 46 | cat /tmp/mondo.quality
|
---|
[2301] | 47 | echo "mondorescue uses : `cat /tmp/mondo.quality | wc -l` getline without &"
|
---|
[2334] | 48 | pbg -w mr_asprintf | grep -vE '"|FNAME|ISOFS|syscall_sprintf|mr_mem|quality' > /tmp/mondo.quality
|
---|
[2296] | 49 | cat /tmp/mondo.quality
|
---|
[2312] | 50 | echo "mondorescue uses : `cat /tmp/mondo.quality | wc -l` mr_asprintf without \""
|
---|
[2334] | 51 | pbg 'mr_asprintf\(\&' > /tmp/mondo.quality
|
---|
[2316] | 52 | cat /tmp/mondo.quality
|
---|
[2334] | 53 | echo "mondorescue uses : `cat /tmp/mondo.quality | wc -l` mr_asprintf with \&"
|
---|
| 54 | pbg 'mr_getline\(\&' > /tmp/mondo.quality
|
---|
| 55 | cat /tmp/mondo.quality
|
---|
| 56 | echo "mondorescue uses : `cat /tmp/mondo.quality | wc -l` mr_getline with \&"
|
---|
[2316] | 57 |
|
---|
[2213] | 58 | echo " "
|
---|
| 59 | echo "Splint: "
|
---|
| 60 | find . -name '*.c' -o -name '*.h' | xargs splint +posixlib -Dlinux
|
---|
| 61 |
|
---|
| 62 | rm -f /tmp/mondo.quality
|
---|
Note:
See
TracBrowser
for help on using the repository browser.