IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19617


Ignore:
Timestamp:
Sep 19, 2008, 12:14:18 PM (18 years ago)
Author:
jhoblitt
Message:

increase user.copies if needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsget

    r19602 r19617  
    33# Copyright (C) 2006-2008  Joshua Hoblitt
    44#
    5 # $Id: dsget,v 1.31 2008-09-18 23:39:36 jhoblitt Exp $
     5# $Id: dsget,v 1.32 2008-09-19 22:14:18 jhoblitt Exp $
    66
    77use strict;
     
    179179        or die "Nebulous can't create key $filename";
    180180
     181    # user.copies is always set to at least 2
     182    my $user_copies = 2;
     183    if (defined $copies) {
     184        $user_copies = $copies if $copies > 2;
     185    }
    181186    $neb->setxattr($filename, "user.copies", 2, "create")
    182187        or die "Nebulous can't set xattr on key $filename";
     
    191196    close($fh) or die "can't close nebulous filehandle: $!";
    192197
    193     # make any required copies
     198    # make any required IMMEDIATE copies
    194199    if (defined $copies and $copies > 1) {
    195200        foreach (1 .. ($copies - 1)) {
Note: See TracChangeset for help on using the changeset viewer.