IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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.

File:
1 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";
Note: See TracChangeset for help on using the changeset viewer.