Ignore:
Timestamp:
Jan 29, 2010, 1:42:51 AM (10 years ago)
Author:
Bruno Cornec
Message:

r3620@localhost: bruno | 2010-01-28 00:04:14 +0100
Large update of devel branch as sync point around mranalyze-lvm (in progress)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/mr/sbin/mranalyze-lvm

    r2541 r2558  
    140140}
    141141
    142 my $lvmver = mr_lvm_analyze($OUTPUT);
     142my $lvm = mr_lvm_analyze($OUTPUT);
    143143
    144 if ($lvmver == 0) {
    145     pb_log(1,"No LVM handling")
     144if (not defined $lvm) {
     145    pb_log(1,"No LVM handling\n") ;
    146146} else {
    147     pb_log(1,"LVM v$lvmver Structure Analyzed")
     147    pb_log(1,"LVM Structure :".Dumper($lvm)."\n");
    148148}
     149
     150open(LVM, "> /tmp/lvm.out") || mr_exit(-1, "Unable to write to /tmp/lvm.out");
     151$lvm = mr_lvm_analyze(\*LVM);
     152close(LVM);
     153open(LVM, "/tmp/lvm.out") || mr_exit(-1, "Unable to read to /tmp/lvm.out");
     154$lvm = mr_lvm_prepare(\*LVM,$OUTPUT,1);
     155close(LVM);
     156
    149157if (defined $opts{'o'}) {
    150158    close($OUTPUT);
Note: See TracChangeset for help on using the changeset viewer.