Changeset 16179 for trunk/Nebulous/bin/neb-touch
- Timestamp:
- Jan 22, 2008, 11:14:55 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/bin/neb-touch (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/bin/neb-touch
r13074 r16179 1 1 #!/usr/bin/env perl 2 2 3 # Copyright (C) 2007 Joshua Hoblitt3 # Copyright (C) 2007-2008 Joshua Hoblitt 4 4 # 5 # $Id: neb-touch,v 1. 2 2007-04-28 01:19:59jhoblitt Exp $5 # $Id: neb-touch,v 1.3 2008-01-22 21:14:55 jhoblitt Exp $ 6 6 7 7 use strict; … … 16 16 use Pod::Usage qw( pod2usage ); 17 17 18 my ($server );18 my ($server, $volume); 19 19 20 20 $server = $ENV{'NEB_SERVER'} unless $server; 21 21 22 22 GetOptions( 23 'server|s=s' => \$server, 23 'server|s=s' => \$server, 24 'volume=s' => \$volume, 24 25 ) || pod2usage( 2 ); 25 26 … … 40 41 41 42 unless ($neb->find($file)) { 42 $neb->create($file) or die "failed to create Nebulous key $file"; 43 $neb->create($file, 0, $volume) 44 or die "failed to create Nebulous key $file"; 43 45 } 44 46 … … 53 55 =head1 SYNOPSIS 54 56 55 neb-touch [--server <URL>] <key>57 neb-touch [--server <URL>] [--volume <volume name>] <key> 56 58 57 59 =head1 DESCRIPTION 58 60 59 This program creates an empty file with the Nebulous key of C<<key>>. At some point in the future it almost be used to adjust the timestamp of storage instances assosiated with a Nebulous key similar to C<touch(1)>. 61 This program creates an empty file with the Nebulous key of C<<key>>. At some 62 point in the future it will be able to adjust the timestamp of storage 63 instances assosiated with a Nebulous key similar to C<touch(1)>. 60 64 61 65 =head1 OPTIONS … … 68 72 69 73 Optional if the appropriate environment variable is set. 74 75 =item * --volume|-n <volume name> 76 77 Symbolic name of the volume to create the first instance on. 78 79 Optional. 70 80 71 81 =back … … 99 109 =head1 COPYRIGHT 100 110 101 Copyright (C) 2007 Joshua Hoblitt. All rights reserved.111 Copyright (C) 2007-2008 Joshua Hoblitt. All rights reserved. 102 112 103 113 This program is free software; you can redistribute it and/or modify it under
Note:
See TracChangeset
for help on using the changeset viewer.
