IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 22, 2008, 11:14:55 AM (18 years ago)
Author:
jhoblitt
Message:

be consistent about referring to volumes by "volume name"

File:
1 edited

Legend:

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

    r13074 r16179  
    11#!/usr/bin/env perl
    22
    3 # Copyright (C) 2007  Joshua Hoblitt
     3# Copyright (C) 2007-2008  Joshua Hoblitt
    44#
    5 # $Id: neb-touch,v 1.2 2007-04-28 01:19:59 jhoblitt Exp $
     5# $Id: neb-touch,v 1.3 2008-01-22 21:14:55 jhoblitt Exp $
    66
    77use strict;
     
    1616use Pod::Usage qw( pod2usage );
    1717
    18 my ($server);
     18my ($server, $volume);
    1919
    2020$server = $ENV{'NEB_SERVER'} unless $server;
    2121
    2222GetOptions(
    23     'server|s=s'     => \$server,
     23    'server|s=s'    => \$server,
     24    'volume=s'      => \$volume,
    2425) || pod2usage( 2 );
    2526
     
    4041
    4142unless ($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";
    4345}
    4446
     
    5355=head1 SYNOPSIS
    5456
    55     neb-touch [--server <URL>] <key>
     57    neb-touch [--server <URL>] [--volume <volume name>] <key>
    5658
    5759=head1 DESCRIPTION
    5860
    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)>.
     61This program creates an empty file with the Nebulous key of C<<key>>.  At some
     62point in the future it will be able to adjust the timestamp of storage
     63instances assosiated with a Nebulous key similar to C<touch(1)>.
    6064
    6165=head1 OPTIONS
     
    6872
    6973Optional if the appropriate environment variable is set.
     74
     75=item * --volume|-n <volume name>
     76
     77Symbolic name of the volume to create the first instance on.
     78
     79Optional.
    7080
    7181=back
     
    99109=head1 COPYRIGHT
    100110
    101 Copyright (C) 2007  Joshua Hoblitt.  All rights reserved.
     111Copyright (C) 2007-2008  Joshua Hoblitt.  All rights reserved.
    102112
    103113This program is free software; you can redistribute it and/or modify it under
Note: See TracChangeset for help on using the changeset viewer.