Changeset 17643
- Timestamp:
- May 12, 2008, 2:09:06 PM (18 years ago)
- Location:
- trunk/Nebulous
- Files:
-
- 2 edited
-
Changes (modified) (1 diff)
-
bin/neb-touch (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/Changes
r17610 r17643 2 2 3 3 0.09 4 - modernize neb-touch API calls 4 5 - change Nebulous::Client->replicate() to check the md5sum of the 5 6 replicated file and to not leave empty instances laying around if there -
trunk/Nebulous/bin/neb-touch
r16232 r17643 3 3 # Copyright (C) 2007-2008 Joshua Hoblitt 4 4 # 5 # $Id: neb-touch,v 1. 7 2008-01-25 20:54:04jhoblitt Exp $5 # $Id: neb-touch,v 1.8 2008-05-13 00:09:06 jhoblitt Exp $ 6 6 7 7 use strict; … … 25 25 ) || pod2usage( 2 ); 26 26 27 my $ file= shift;27 my $key = shift; 28 28 29 29 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 31 31 unless $server; 32 32 pod2usage( -msg => "missing file operand", exitval => 2 ) 33 unless defined $ file;33 unless defined $key; 34 34 35 35 my $neb = Nebulous::Client->new( … … 40 40 unless defined $neb; 41 41 42 unless (scalar @{$neb->find_objects($file)}) { 43 if (defined $volume) { 44 $neb->create($file, $volume) 45 or die "failed to create Nebulous key $file"; 46 } else { 47 $neb->create($file) 48 or die "failed to create Nebulous key $file"; 49 } 42 unless ($neb->stat($key)) { 43 my $fh = $neb->create($key, $volume) 44 or die "failed to create Nebulous key: $key"; 50 45 } 51 46
Note:
See TracChangeset
for help on using the changeset viewer.
