IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 24, 2010, 3:56:40 PM (16 years ago)
Author:
watersc1
Message:

Add note to nebulous volume and mountedvol tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/bin/neb-voladd

    r24545 r28492  
    1919use Pod::Usage qw( pod2usage );
    2020
    21 my ($db, $dbhost, $dbuser, $dbpass, $mountpoint, $vname, $vhost, $uri);
     21my ($db, $dbhost, $dbuser, $dbpass, $mountpoint, $vname, $vhost, $uri, $note);
    2222
    2323$db     = $ENV{'NEB_DB'} unless $db;
     
    3535    'vhost=s'           => \$vhost,
    3636    'vname|n=s'         => \$vname,
     37    'note=s'            => \$note,
    3738) || pod2usage( 2 );
    3839
     
    6970
    7071my $query = $dbh->prepare( $sql->new_volume );
    71 $query->execute( $vname, $vhost, $path, $mountpoint);
     72$query->execute( $vname, $vhost, $path, $mountpoint, $note);
    7273
    7374print " OK\n";
     
    131132
    132133Optional.  Defaults to C<localhost>.
     134
     135=item * --note <note>
     136
     137Add a note for this volume.
    133138
    134139=item * --mountpoint <path>
Note: See TracChangeset for help on using the changeset viewer.