Changeset 17073
- Timestamp:
- Mar 20, 2008, 1:23:31 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 21 deleted
- 7 edited
-
Nebulous-Server/Changes (modified) (1 diff)
-
Nebulous/Build.PL (modified) (2 diffs)
-
Nebulous/Changes (modified) (1 diff)
-
Nebulous/MANIFEST (modified) (5 diffs)
-
Nebulous/bin/neb-addvol (deleted)
-
Nebulous/bin/neb-fsck (deleted)
-
Nebulous/bin/neb-initdb (deleted)
-
Nebulous/bin/nebdiskd (deleted)
-
Nebulous/lib/Nebulous/Client.pm (modified) (2 diffs)
-
Nebulous/lib/Nebulous/Keys.pod (deleted)
-
Nebulous/lib/Nebulous/Server.pm (deleted)
-
Nebulous/lib/Nebulous/Server.pod (deleted)
-
Nebulous/lib/Nebulous/Util.pm (modified) (2 diffs)
-
Nebulous/t/01_load.t (modified) (3 diffs)
-
Nebulous/t/02_server_setup.t (deleted)
-
Nebulous/t/03_server_create_object.t (deleted)
-
Nebulous/t/04_server_replicate_object.t (deleted)
-
Nebulous/t/05_server_lock_object.t (deleted)
-
Nebulous/t/06_server_unlock_object.t (deleted)
-
Nebulous/t/07_server_find_instances.t (deleted)
-
Nebulous/t/08_server_delete_instance.t (deleted)
-
Nebulous/t/09_server_stat_object.t (deleted)
-
Nebulous/t/10_server_is_valid_volume_name.t (deleted)
-
Nebulous/t/11_server_is_valid_object_key.t (deleted)
-
Nebulous/t/12_server_find_objects.t (deleted)
-
Nebulous/t/13_server_rename_object.t (deleted)
-
Nebulous/t/14_server_xattr.t (deleted)
-
Nebulous/t/Test/Nebulous.pm (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/Changes
r16565 r17073 2 2 3 3 0.07 4 - server/client split into Nebulous::Server and Nebulous::Client packages 4 5 - add support for storing instances in multi-tier 'hashed' directories 5 6 - pickup test DB settings from the env. -
trunk/Nebulous/Build.PL
r16565 r17073 75 75 $class->new( 76 76 module_name => 'Nebulous', 77 dist_version_from => 'lib/Nebulous/ Server.pm',77 dist_version_from => 'lib/Nebulous/Client.pm', 78 78 author => 'Joshua Hoblitt <jhoblitt@cpan.org>', 79 79 license => 'gpl', 80 80 create_makefile_pl => 'passthrough', 81 81 requires => { 82 'File::Copy' => 0, 83 'Time::HiRes' => 0, 82 84 'Class::Accessor::Fast' => 0, 83 'Config::YAML' => '1.42',84 'DBD::mysql' => '3.0007',85 'DBI' => '1.53',86 'Digest::SHA1' => 0,87 'File::ExtAttr' => '1.03',88 'File::Path' => '1.08',89 85 'File::Spec' => 0, 90 86 'File::Spec::Functions' => 0, 91 87 'Log::Log4perl' => '0.48', 92 'Net::Server::Daemonize'=> '0.05',93 88 'Params::Validate' => '0.73', 94 89 'SOAP::Lite' => '0.69', 95 'Sys::Statistics::Linux::DiskUsage' => '0.02',96 90 'URI' => '1.30', 97 }, 98 build_requires => { 99 'Apache2::SOAP' => 0, 100 'Apache::DBI' => '1.05', 101 'Apache::Test' => '1.27', # bundles Apache::TestMB 102 'Apache::TestMB' => 0, 103 'File::Temp' => 0, 104 'Test::More' => '0.49', 105 'Test::URI' => '1.06', 91 'Getopt::Long' => 0, 92 'Pod::Usage' => 0, 93 # below are for ./bin only any need to go away 94 'DBD::mysql' => '3.0007', 95 'DBI' => '1.53', 96 'Nebulous::Server::SQL' => 0, 106 97 }, 107 98 recommends => { 108 'Test::Distribution' => '1.22', 99 'Nebulous::Server::Apache' => 0, 100 'Nebulous::Server' => 0, 101 'Nebulous::Server::SOAP' => 0, 102 'Test::Nebulous' => 0, 103 'Apache2::SOAP' => 0, 104 'Apache::DBI' => '1.05', 105 'Apache::Test' => '1.27', # bundles Apache::TestMB 106 'Apache::TestMB' => 0, 107 'Test::More' => '0.49', 108 'Test::URI' => '1.06', 109 'Test::Distribution' => '1.22', 109 110 }, 110 111 script_files => [qw( 111 bin/neb-addvol112 112 bin/neb-cat 113 113 bin/neb-cp 114 114 bin/neb-cull 115 115 bin/neb-df 116 bin/neb-fsck117 bin/neb-initdb118 116 bin/neb-locate 119 117 bin/neb-ls … … 123 121 bin/neb-stat 124 122 bin/neb-touch 125 bin/nebdiskd126 123 )], 127 124 )->create_build_script; -
trunk/Nebulous/Changes
r16565 r17073 2 2 3 3 0.07 4 - server/client split into Nebulous::Server and Nebulous::Client packages 4 5 - add support for storing instances in multi-tier 'hashed' directories 5 6 - pickup test DB settings from the env. -
trunk/Nebulous/MANIFEST
r16264 r17073 8 8 Todo 9 9 autogen.sh 10 bin/neb-addvol11 10 bin/neb-cat 12 11 bin/neb-cp 13 12 bin/neb-cull 14 13 bin/neb-df 15 bin/neb-fsck16 bin/neb-initdb17 14 bin/neb-locate 18 15 bin/neb-ls … … 22 19 bin/neb-stat 23 20 bin/neb-touch 24 bin/nebdiskd25 21 docs/c_api.h 26 22 docs/database_setup.txt … … 37 33 lib/Nebulous/Client/Log.pm 38 34 lib/Nebulous/Client/QuickStart.pod 39 lib/Nebulous/Keys.pod40 lib/Nebulous/Server.pm41 lib/Nebulous/Server.pod42 lib/Nebulous/Server/Apache.pm43 lib/Nebulous/Server/Config.pm44 lib/Nebulous/Server/Log.pm45 lib/Nebulous/Server/SOAP.pm46 lib/Nebulous/Server/SQL.pm47 35 lib/Nebulous/Util.pm 48 36 nebclient/Doxyfile.in … … 98 86 t/00_distribution.t 99 87 t/01_load.t 100 t/02_server_setup.t101 t/03_server_create_object.t102 t/04_server_replicate_object.t103 t/05_server_lock_object.t104 t/06_server_unlock_object.t105 t/07_server_find_instances.t106 t/08_server_delete_instance.t107 t/09_server_stat_object.t108 t/10_server_is_valid_volume_name.t109 t/11_server_is_valid_object_key.t110 t/12_server_find_objects.t111 t/13_server_rename_object.t112 t/14_server_xattr.t113 88 t/50_client_new.t 114 89 t/51_client_create.t … … 130 105 t/90_nebclient.t 131 106 t/TEST.PL 132 t/Test/Nebulous.pm133 107 t/conf/extra.conf.in 134 108 t/conf/startup.pl.in -
trunk/Nebulous/lib/Nebulous/Client.pm
r16302 r17073 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Client.pm,v 1. 39 2008-02-05 04:57:56 eugeneExp $3 # $Id: Client.pm,v 1.40 2008-03-20 23:21:58 jhoblitt Exp $ 4 4 5 5 package Nebulous::Client; … … 8 8 use warnings FATAL => qw( all ); 9 9 10 our $VERSION = '0.0 2';10 our $VERSION = '0.07'; 11 11 12 12 use File::Copy qw(); -
trunk/Nebulous/lib/Nebulous/Util.pm
r16354 r17073 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Util.pm,v 1.1 0 2008-02-07 22:18:51jhoblitt Exp $3 # $Id: Util.pm,v 1.11 2008-03-20 23:21:58 jhoblitt Exp $ 4 4 5 5 package Nebulous::Util; … … 80 80 } 81 81 82 sub parse_neb_key83 {84 my $text = shift;85 return unless defined $text;86 87 # white space is not allowed88 if ($text =~ qr/\s+/) {89 die "keys and URIs may not contain whitespace";90 }91 92 my $uri = URI->new($text);93 my $scheme = $uri->scheme;94 my $path = $uri->opaque;95 96 my $volume;97 # if this is a valid uri98 if (defined $scheme) {99 # if so, does it use the neb scheme?100 die "URI does not use the 'neb' scheme"101 unless $scheme eq 'neb';102 103 # neb:path (not allowed)104 # neb://<volume name>/...105 # neb:/path... (leading '/' is stripped)106 # neb:///path... (same as neb:/path)107 108 # volume specifier must be at least one character109 # strip off volume component if it exists110 $path =~ s|^//([^/]+)||;111 $volume = $1;112 113 # require a leading slash if there is no volume name114 if ((not defined $volume) and (not $path =~ m|^/|)) {115 die "neb URI scheme requires a leading slash, eg. neb:/";116 }117 }118 119 # strip leading slashes120 $path =~ s|^/+||;121 122 # remove multiple /'s and trailing slashes123 $path = canonpath($path);124 125 return ($volume, $path);126 }127 82 128 83 1; -
trunk/Nebulous/t/01_load.t
r4440 r17073 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 01_load.t,v 1. 7 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 01_load.t,v 1.8 2008-03-20 23:21:58 jhoblitt Exp $ 6 6 7 7 use strict; … … 10 10 use lib qw( ./t ./lib ); 11 11 12 use Test::More tests => 8;12 use Test::More tests => 4; 13 13 14 14 BEGIN { use_ok( 'Nebulous::Client' ); } … … 16 16 BEGIN { use_ok( 'Nebulous::Client::HTTP' ); } 17 17 BEGIN { use_ok( 'Nebulous::Util' ); } 18 BEGIN { use_ok( 'Nebulous::Server' ); }19 BEGIN { use_ok( 'Nebulous::Server::SQL' ); }20 BEGIN { use_ok( 'Nebulous::Server::Log' ); }21 BEGIN { use_ok( 'Nebulous::Server::SOAP' ); }
Note:
See TracChangeset
for help on using the changeset viewer.
