IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29892


Ignore:
Timestamp:
Dec 1, 2010, 12:46:52 PM (15 years ago)
Author:
bills
Message:

in file_gone() handle case where the file is available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/ipp_cleanup.pl

    r29671 r29892  
    19841984sub file_gone
    19851985{
    1986     # if $check_for_gone check whether the only instance of file is on a lost volumen
     1986    # if $check_for_gone check whether the only instance of file is on a lost volume
    19871987    # XXX: we don't have a proper interface for this.
    19881988    # For now try to use Bill's hack the script 'whichnode'
     
    19901990
    19911991    my $file = shift;
     1992
     1993    if (file_scheme($file) ne 'neb') {
     1994        return 0;
     1995    }
    19921996
    19931997    if (!$whichnode) {
     
    20212025            print STDERR "$file is on $volume which is gone\n";
    20222026            $numGone++;
     2027        } elsif ($answer eq 'available') {
     2028            $numNotGone++;
    20232029        } elsif ($answer eq 'not') {
    20242030            print STDERR "$file is on $volume which is not available\n";
Note: See TracChangeset for help on using the changeset viewer.