- Timestamp:
- Mar 17, 2009, 12:08:50 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 3 deleted
- 4 edited
- 1 copied
-
. (modified) (1 prop)
-
Nebulous-Server/MANIFEST (modified) (1 diff)
-
Nebulous-Server/bin/neb-admin (modified) (5 diffs)
-
Nebulous-Server/bin/neb-voladd (modified) (2 diffs)
-
Nebulous-Server/docs/c_api.h (deleted)
-
Nebulous-Server/docs/install.txt (copied) (copied from trunk/Nebulous-Server/docs/install.txt )
-
Nebulous-Server/docs/setup.txt (deleted)
-
Nebulous-Server/docs/tmp.txt (deleted)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk merged eligible /branches/eam_branches/eam_branch_20090303 23158-23228
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/cnb_branches/cnb_branch_20090301/Nebulous-Server/MANIFEST
r20990 r23352 10 10 bin/neb-voladd 11 11 bin/nebdiskd 12 docs/c_api.h13 12 docs/database_setup.txt 14 13 docs/design.txt 14 docs/install.txt 15 15 docs/requirements.txt 16 docs/setup.txt17 docs/tmp.txt18 16 examples/Makefile 19 17 examples/nebexample.c -
branches/cnb_branches/cnb_branch_20090301/Nebulous-Server/bin/neb-admin
r20202 r23352 23 23 $dbpass, 24 24 $dbuser, 25 $so_id_start, 26 $so_id_range, 25 27 $limit, 26 28 $pending, … … 41 43 'pendingreplicate|r' => \$pending, 42 44 'pendingremoval' => \$removal, 45 'so_id_start=i' => \$so_id_start, 46 'so_id_range=i' => \$so_id_range, 43 47 'limit|l=i' => \$limit, 44 48 'verbose|v' => \$verbose, … … 58 62 59 63 # check to make sure that only one instance of neb-admin is running 64 # XXX this implies we should move pending replicate elsewhere 60 65 my $pidfile = '/var/tmp/neb-admin'; 61 66 # abort if an instance is already running … … 91 96 $dbh->do("INSERT INTO myvolume SELECT * FROM volume"); 92 97 98 if (not defined $so_id_start) { $so_id_start = 0; } 99 if (not defined $so_id_range) { $so_id_range = 100000; } 100 my $so_id_end = $so_id_start + $so_id_range; 101 102 # XXX check if so_id_start is beyond MAX(so_id): if so, exit with exit status 10 103 { 104 my $query = $dbh->prepare("SELECT MAX(so_id) from storage_object"); 105 $query->execute; 106 my $answer = $query->fetchrow_arrayref; 107 my $max_so_id = $$answer[0]; 108 $query->finish; 109 110 if ($so_id_start > $max_so_id) { 111 print STDERR "at end of so_id range, reset please\n"; 112 exit 10; 113 } 114 } 115 93 116 my $query = $dbh->prepare( 94 117 " SELECT … … 111 134 USING(vol_id) 112 135 WHERE mymountedvol.available = 1 113 -- WHERE storage_object_xattr.name = 'user.copies' 136 AND storage_object_xattr.name = 'user.copies' 137 AND storage_object.so_id >= $so_id_start 138 AND storage_object.so_id < $so_id_end 114 139 GROUP BY so_id 115 140 HAVING available_instances < instances OR instances < copies -
branches/cnb_branches/cnb_branch_20090301/Nebulous-Server/bin/neb-voladd
r19797 r23352 79 79 =head1 SYNOPSIS 80 80 81 neb-voladd --v olume <volumename> --uri <volume uri>81 neb-voladd --vname <volume name> --vhost <host name> --uri <volume uri> 82 82 [--db <database>] [--user <username>] [--pass <password>] [--host <hostname] 83 83 … … 92 92 =over 4 93 93 94 =item * --v olume <volume name>94 =item * --vname <volume name> 95 95 96 96 Symbolic name of volume being added. 97 98 =item * --vhost <host name> 99 100 Name of the host that containes the C<URI> of the volume being added. 97 101 98 102 =item * --uri|-u <volume uri>
Note:
See TracChangeset
for help on using the changeset viewer.
