IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30236


Ignore:
Timestamp:
Jan 11, 2011, 1:58:34 PM (15 years ago)
Author:
watersc1
Message:

When specifying a volume, automatically make it a hard volume by appending a '~' to the beginning. This has two effects:

  1. if the specified volume does not contain an instance, die and say so.
  2. if the specified volume does not exist, die and say so.

This would have prevented the issues with the roc file creation.

File:
1 edited

Legend:

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

    r25121 r30236  
    1717
    1818my ($min_copies, $server, $volume, $one_only);
    19 
     19my ($soft_volume);
    2020$server = $ENV{'NEB_SERVER'} unless $server;
    2121
     
    2525    'volume|v=s'    => \$volume,
    2626    'one_only|o'    => \$one_only,
     27    'soft_volume'   => \$soft_volume,
    2728) || pod2usage( 2 );
    2829
     
    4243    unless defined $neb;
    4344
     45if ($volume) {
     46    unless (($soft_volume)) {
     47        $volume = '~' . $volume;
     48    }
     49}
     50
    4451$volume ||= "any";
    4552$min_copies ||= 2;
     
    4855push @cull_args, $key;
    4956push @cull_args, $volume;
     57
     58# print "$key $volume\n";
     59# print "@cull_args\n";
     60
    5061
    5162if ($one_only) {
     
    95106
    96107Symbolic name of the volume to create the new instance on.
     108
     109Optional.
     110
     111=item * --soft_volume
     112
     113Treat the specified volume name as soft, and allow an instance to be culled
     114from another volume if the specified volume does not have an instance.
    97115
    98116Optional.
Note: See TracChangeset for help on using the changeset viewer.