Changeset 29950 for trunk/ippScripts/scripts/chip_imfile.pl
- Timestamp:
- Dec 6, 2010, 11:09:25 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/chip_imfile.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/chip_imfile.pl
r29896 r29950 159 159 if (storage_object_exists($configuration, \$gone)) { 160 160 if ($gone) { 161 rename_gone_file($configuration);162 161 $configuration = prepare_output('PPIMAGE.CONFIG', $outroot, $class_id, 1); 163 162 # if we dump the config we need to insure that the config dump represents … … 556 555 if ($gone) { 557 556 carp "WARNING: photometry sources storage object exists but all instances are permanently gone"; 558 rename_gone_file($outputSources);559 557 $make_sources = 1; 560 558 } … … 579 577 if ($gone) { 580 578 carp "WARNING: PSF storage object exists but all instances are permanently gone"; 581 rename_gone_file($outputPsf);582 579 $make_psf = 1; 583 580 } … … 613 610 sub storage_object_exists 614 611 { 612 return 0 if !$neb; 613 615 614 my $file = shift; 616 615 my $ref_all_gone = shift; 616 617 617 618 618 my $exists = $neb->storage_object_exists($file); … … 678 678 return 1; 679 679 } 680 sub rename_gone_file681 {682 # check whether the only instance of file is on a lost volume683 # XXX: we don't have a proper interface for this.684 # For now try to use Bill's hack: the script 'whichnode'685 686 my $file = shift;687 $neb->move($file, "$file.gone") or688 &my_die("failed to rename: $file", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR);689 }690 680 691 681 # Prepare to write to an output file … … 718 708 &my_die("Couldn't find expected output file: $file", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($file); 719 709 720 if ($replicate and (file_scheme($file) eq 'neb')) {710 if ($replicate and $neb) { 721 711 $ipprc->replicate_file($file) or &my_die("failed to replicate: $file\n", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR); 722 712 }
Note:
See TracChangeset
for help on using the changeset viewer.
