- Timestamp:
- Apr 11, 2018, 2:15:43 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
Nebulous/bin/whichnode (modified) (2 diffs)
-
ippScripts/scripts/chip_imfile.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/bin/whichnode
r33971 r40387 31 31 my $dbh = getDBHandle(); 32 32 33 my $query = "SELECT volume.name AS volname, uri, mountedvol.* "33 my $query = "SELECT volume.name AS volname, uri, mountedvol.*, volume.xattr AS volxattr" 34 34 . " FROM storage_object JOIN instance USING(so_id)" 35 35 . " JOIN volume using(vol_id)" … … 53 53 my $volname = $instance->{volname}; 54 54 my $uri = $instance->{uri}; 55 my $volxattr = $instance->{volxattr}; 56 55 57 $num_instances++; 56 58 if ($instance->{available}) { 57 59 $num_available++; 58 60 print "$volname available\n"; 61 } elsif ($volxattr == 5) { 62 print "$volname permanently offline\n"; 59 63 } else { 60 64 print "$volname not available\n"; -
trunk/ippScripts/scripts/chip_imfile.pl
r36529 r40387 632 632 if ($gone) { 633 633 carp "WARNING: photometry sources storage object exists but all instances are permanently gone"; 634 $ipprc->file_rename($outputSources,$outputSources . ".gone"); 634 635 $make_sources = 1; 635 636 } … … 657 658 if ($gone) { 658 659 carp "WARNING: PSF storage object exists but all instances are permanently gone"; 660 $ipprc->file_rename($outputPsf,$outputPsf . ".gone"); 659 661 $make_psf = 1; 660 662 } … … 742 744 print STDERR "$file is on $volume which is gone\n"; 743 745 $numGone++; 746 } elsif ($answer eq 'permanently') { 747 $numGone++; 744 748 } elsif ($answer eq 'available') { 745 749 $numNotGone++;
Note:
See TracChangeset
for help on using the changeset viewer.
