IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23568


Ignore:
Timestamp:
Mar 26, 2009, 4:22:36 PM (17 years ago)
Author:
eugene
Message:

add option to set the desired number of copies after (attempting) the replication

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/neb_distrib_20081210/Nebulous/bin/neb-replicate

    r20900 r23568  
    2525    'volume|v=s'    => \$volume,
    2626    'copies|c=i'    => \$copies,
     27    'set_copies=i'  => \$set_copies,
    2728) || pod2usage( 2 );
    2829
     
    4445    unless defined $neb;
    4546
     47# XXX if replicate fails, we should still set user.copies (if requested)
    4648for (my $i = 0; $i < $copies; $i++) {
    4749    if (defined $volume) {
     
    5456}
    5557
     58if (defined $set_copies && $set_copies) {
     59    write_xattrs($neb, $key, "user.copies:$set_copies") or die;
     60}
    5661
    5762__END__
Note: See TracChangeset for help on using the changeset viewer.