Changeset 12970
- Timestamp:
- Apr 23, 2007, 2:56:30 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
Nebulous-Server/Changes (modified) (1 diff)
-
Nebulous-Server/bin/neb-addvol (modified) (3 diffs)
-
Nebulous/Changes (modified) (1 diff)
-
Nebulous/bin/neb-addvol (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/Changes
r12968 r12970 1 1 Revision history for Perl module Poi::PixelData 2 3 - change neb-addvol to properly mangle URIs into paths 2 4 3 5 0.04 Mon Apr 23 13:33:16 HST 2007 -
trunk/Nebulous-Server/bin/neb-addvol
r4909 r12970 3 3 # Copyright (C) 2005 Joshua Hoblitt 4 4 # 5 # $Id: neb-addvol,v 1. 1 2005-08-31 00:30:20 jhoblitt Exp $5 # $Id: neb-addvol,v 1.2 2007-04-24 00:56:30 jhoblitt Exp $ 6 6 7 7 use strict; … … 13 13 use DBI; 14 14 use Nebulous::Server::SQL; 15 use URI; 15 16 16 17 use Getopt::Long qw( GetOptions :config auto_help auto_version ); … … 48 49 my $sql = Nebulous::Server::SQL->new(); 49 50 51 print "Checking URI..."; 52 53 my $path = URI::file->new($uri)->file; 54 unless (-d $path) { 55 die "path: $path dirived from URI: $uri does not exist"; 56 } 57 58 print " OK\n"; 59 50 60 print "Adding volume..."; 51 61 52 62 my $query = $dbh->prepare( $sql->new_volume ); 53 $query->execute( $name, $ uri);63 $query->execute( $name, $path ); 54 64 55 65 print " OK\n"; -
trunk/Nebulous/Changes
r12968 r12970 1 1 Revision history for Perl module Poi::PixelData 2 3 - change neb-addvol to properly mangle URIs into paths 2 4 3 5 0.04 Mon Apr 23 13:33:16 HST 2007 -
trunk/Nebulous/bin/neb-addvol
r4909 r12970 3 3 # Copyright (C) 2005 Joshua Hoblitt 4 4 # 5 # $Id: neb-addvol,v 1. 1 2005-08-31 00:30:20 jhoblitt Exp $5 # $Id: neb-addvol,v 1.2 2007-04-24 00:56:30 jhoblitt Exp $ 6 6 7 7 use strict; … … 13 13 use DBI; 14 14 use Nebulous::Server::SQL; 15 use URI; 15 16 16 17 use Getopt::Long qw( GetOptions :config auto_help auto_version ); … … 48 49 my $sql = Nebulous::Server::SQL->new(); 49 50 51 print "Checking URI..."; 52 53 my $path = URI::file->new($uri)->file; 54 unless (-d $path) { 55 die "path: $path dirived from URI: $uri does not exist"; 56 } 57 58 print " OK\n"; 59 50 60 print "Adding volume..."; 51 61 52 62 my $query = $dbh->prepare( $sql->new_volume ); 53 $query->execute( $name, $ uri);63 $query->execute( $name, $path ); 54 64 55 65 print " OK\n";
Note:
See TracChangeset
for help on using the changeset viewer.
