Changeset 2558 in MondoRescue for devel/mr/sbin
- Timestamp:
- Jan 29, 2010, 1:42:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/mr/sbin/mranalyze-lvm
r2541 r2558 140 140 } 141 141 142 my $lvm ver= mr_lvm_analyze($OUTPUT);142 my $lvm = mr_lvm_analyze($OUTPUT); 143 143 144 if ( $lvmver == 0) {145 pb_log(1,"No LVM handling ")144 if (not defined $lvm) { 145 pb_log(1,"No LVM handling\n") ; 146 146 } else { 147 pb_log(1,"LVM v$lvmver Structure Analyzed")147 pb_log(1,"LVM Structure :".Dumper($lvm)."\n"); 148 148 } 149 150 open(LVM, "> /tmp/lvm.out") || mr_exit(-1, "Unable to write to /tmp/lvm.out"); 151 $lvm = mr_lvm_analyze(\*LVM); 152 close(LVM); 153 open(LVM, "/tmp/lvm.out") || mr_exit(-1, "Unable to read to /tmp/lvm.out"); 154 $lvm = mr_lvm_prepare(\*LVM,$OUTPUT,1); 155 close(LVM); 156 149 157 if (defined $opts{'o'}) { 150 158 close($OUTPUT);
Note:
See TracChangeset
for help on using the changeset viewer.