IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32529


Ignore:
Timestamp:
Oct 10, 2011, 3:47:00 PM (15 years ago)
Author:
watersc1
Message:

Be safer, and do not cull extra copies.

Check the return code on the copy operation during the repair, and die if that did not succeed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/bin/neb-repair

    r32473 r32529  
    118118                    print "\tcp $valid_file $f\n";
    119119                    system("cp $valid_file $f");
     120                    if ($? >> 8 != 0) {
     121                        die "Failed to copy file $valid_file to $f!\n";
     122                    }
    120123                }
    121124            }
     
    124127}
    125128
    126 if ($N_files > $user_copies) {
    127     my @split = split /\//, $last_f;
    128     my $volume = $split[2];
    129     print "Culling extra copy: neb-cull --volume $volume $key\n";
    130     system("neb-cull --volume $volume $key");
    131 }
     129# if ($N_files > $user_copies) {
     130#     my @split = split /\//, $last_f;
     131#     my $volume = $split[2];
     132#     print "Culling extra copy: neb-cull --volume $volume $key\n";
     133#     system("neb-cull --volume $volume $key");
     134# }
    132135
    133136
Note: See TracChangeset for help on using the changeset viewer.