IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40387 for trunk


Ignore:
Timestamp:
Apr 11, 2018, 2:15:43 PM (8 years ago)
Author:
watersc1
Message:

Allow chip updates to regenerate files when the current copy only exists on permanently gone volumes.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/bin/whichnode

    r33971 r40387  
    3131my $dbh = getDBHandle();
    3232
    33 my $query = "SELECT  volume.name AS volname, uri, mountedvol.*"
     33my $query = "SELECT  volume.name AS volname, uri, mountedvol.*, volume.xattr AS volxattr"
    3434    . " FROM storage_object JOIN instance USING(so_id)"
    3535    . " JOIN volume using(vol_id)"
     
    5353        my $volname = $instance->{volname};
    5454        my $uri = $instance->{uri};
     55        my $volxattr = $instance->{volxattr};
     56       
    5557        $num_instances++;
    5658        if ($instance->{available}) {
    5759            $num_available++;
    5860            print "$volname available\n";
     61        } elsif ($volxattr == 5) {
     62            print "$volname permanently offline\n";
    5963        } else {
    6064            print "$volname not available\n";
  • trunk/ippScripts/scripts/chip_imfile.pl

    r36529 r40387  
    632632                if ($gone) {
    633633                    carp "WARNING: photometry sources storage object exists but all instances are permanently gone";
     634                    $ipprc->file_rename($outputSources,$outputSources . ".gone");
    634635                    $make_sources = 1;
    635636                }
     
    657658            if ($gone) {
    658659                carp "WARNING: PSF storage object exists but all instances are permanently gone";
     660                $ipprc->file_rename($outputPsf,$outputPsf . ".gone");
    659661                $make_psf = 1;
    660662            }
     
    742744            print STDERR "$file is on $volume which is gone\n";
    743745            $numGone++;
     746        } elsif ($answer eq 'permanently') {
     747            $numGone++;
    744748        } elsif ($answer eq 'available') {
    745749            $numNotGone++;
Note: See TracChangeset for help on using the changeset viewer.