Changeset 2703


Ignore:
Timestamp:
Jan 27, 2011, 7:31:20 PM (8 years ago)
Author:
bruno
Message:

r4179@localhost: bruno | 2011-01-27 08:06:03 +0100

  • Replace usage of pvs with pvscan for speed reasons in analyze-my-lvm (still some speed optimizations to do in that script)
  • Workaround problems met on RHEL 5.2 and 5.4 around pvs command generating a list of \n separated pvs with back quotes in an unexpected way. Could be linked to a b ash bug in this context ?
  • Adds /etc/rpc and /etc/netconfig as minimal deps for mindi for latest NFS support (mdv 2010.2 at least)


Port 2.2.9 recent changes to 2.2.10
svk merge -r 4174:4178 local/mondorescue/branches/2.2.9 .

Location:
branches/2.2.10
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mindi/analyze-my-lvm

    r2696 r2703  
    134134    if [ $lvmversion = 2 ]; then
    135135        VG_params=`GenerateVgcreateParameters $current_VG`
    136         current_PVs=`$LVMCMD pvs | grep " $current_VG " | awk '{print $1}'`
     136        current_PVs=`$LVMCMD pvscan | grep " $current_VG " | awk '{print $2}' | tr '\n' ' '`
    137137        list_of_devices=$current_PVs
    138138    else
     
    142142        list_of_devices=""
    143143        for i in $physical_volumes ; do
    144             fname=/proc/lvm/VGs/$current_VG/PVs/$i
    145             device=`GetValueFromField $fname "name:"`
    146             list_of_devices="$list_of_devices $device"
     144            fname=/proc/lvm/VGs/$current_VG/PVs/$i
     145            device=`GetValueFromField $fname "name:"`
     146            list_of_devices="$list_of_devices $device"
    147147        done
    148148        current_PVs=$list_of_devices
  • branches/2.2.10/mindi/deplist.d/minimal-net.conf

    r2445 r2703  
    1212/sbin/mount.nfs
    1313/sbin/mount.nfs4
     14/etc/rpc
     15/etc/netconfig
    1416/usr/bin/sshfs
    1517/sbin/mount.fuse
  • branches/2.2.10/mindi/mindi-bkphw

    r2696 r2703  
    5454        chomp($tool);
    5555        $tooldir = dirname($tool);
    56         if (! (-e $tool)) {
     56        if (! (-x $tool)) {
    5757            print "You should install the SmartStart Scripting toolkit tool $tool\nto benefit from mindi's enhanced hardware support\n";
    5858            print "Get it from http://www.hp.com/servers/sstoolkit\n";
     
    7373            print TOOLS "$tooldir/bld\n";
    7474        }
    75         if ($tool =~ /\/.hpacucli$/) {
     75        if ($tool =~ /\/hpacucli$/) {
    7676            my $dir=basename($tool);
    7777            $ret = system("export ACUXE_BIN_INSTALLATION_DIR=$dir ; export IM_CFGFILE_PATH=$dir ; export ACUXE_LOCK_FILES_DIR=$dir/locks ; $tool -c $bkpdir/hpacucli.dat");
  • branches/2.2.10/mondo/src/common/newt-specific.c

    r2508 r2703  
    453453                    if (!strncmp(err_log_lines[i], "root:", 5)) {
    454454                        mr_asprintf(tmp, "%s", err_log_lines[i] + 6);
    455                         strcpy(err_log_lines[i], tmp);
     455                        strncpy(err_log_lines[i], tmp, (size_t)MAX_NEWT_COMMENT_LEN);
    456456                        mr_free(tmp);
    457457                    }
     
    486486
    487487        va_start(args, fmt);
    488         vsprintf(output, fmt, args);
     488        vsnprintf(output, MAX_STR_LEN-1, fmt, args);
    489489        log_msg(0, output);
    490490        output[80] = '\0';
Note: See TracChangeset for help on using the changeset viewer.