Changeset 16264
- Timestamp:
- Jan 29, 2008, 2:19:34 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
-
Nebulous-Server/Build.PL (modified) (1 diff)
-
Nebulous-Server/MANIFEST (modified) (1 diff)
-
Nebulous-Server/bin/neb-fsck (added)
-
Nebulous-Server/lib/Nebulous/Server/SQL.pm (modified) (3 diffs)
-
Nebulous/Build.PL (modified) (1 diff)
-
Nebulous/MANIFEST (modified) (1 diff)
-
Nebulous/bin/neb-fsck (added)
-
Nebulous/lib/Nebulous/Server/SQL.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/Build.PL
r16262 r16264 111 111 bin/neb-cull 112 112 bin/neb-df 113 bin/neb-fsck 113 114 bin/neb-initdb 114 115 bin/neb-locate 115 116 bin/neb-ls 116 117 bin/neb-mv 118 bin/neb-replicate 117 119 bin/neb-rm 118 120 bin/neb-stat 119 121 bin/neb-touch 120 122 bin/nebdiskd 121 bin/neb-replicate122 123 )], 123 124 )->create_build_script; -
trunk/Nebulous-Server/MANIFEST
r16262 r16264 13 13 bin/neb-cull 14 14 bin/neb-df 15 bin/neb-fsck 15 16 bin/neb-initdb 16 17 bin/neb-locate -
trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm
r16259 r16264 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: SQL.pm,v 1.4 5 2008-01-28 19:48:08jhoblitt Exp $3 # $Id: SQL.pm,v 1.46 2008-01-30 00:19:06 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server::SQL; … … 172 172 storage_object.so_id, 173 173 uri, 174 assigned_vol_id 174 assigned_vol_id, 175 available 175 176 FROM storage_object 176 177 JOIN instance … … 242 243 SET ext_id = ? 243 244 WHERE ext_id = ? 245 }, 246 find_objects_with_unavailable_instances => qq{ 247 SELECT 248 so_id, 249 ext_id, 250 count(ins_id) as instances, 251 count(mountedvol.vol_id) as available_instances, 252 count(mountedvol.vol_id) < count(ins_id) as need_recovery, 253 count(mountedvol.vol_id) > 0 as recoverable 254 FROM storage_object 255 JOIN instance 256 USING(so_id) 257 LEFT JOIN mountedvol 258 USING(vol_id) 259 GROUP BY so_id 260 HAVING need_recovery = 1 244 261 }, 245 262 ); -
trunk/Nebulous/Build.PL
r16262 r16264 111 111 bin/neb-cull 112 112 bin/neb-df 113 bin/neb-fsck 113 114 bin/neb-initdb 114 115 bin/neb-locate 115 116 bin/neb-ls 116 117 bin/neb-mv 118 bin/neb-replicate 117 119 bin/neb-rm 118 120 bin/neb-stat 119 121 bin/neb-touch 120 122 bin/nebdiskd 121 bin/neb-replicate122 123 )], 123 124 )->create_build_script; -
trunk/Nebulous/MANIFEST
r16262 r16264 13 13 bin/neb-cull 14 14 bin/neb-df 15 bin/neb-fsck 15 16 bin/neb-initdb 16 17 bin/neb-locate -
trunk/Nebulous/lib/Nebulous/Server/SQL.pm
r16259 r16264 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: SQL.pm,v 1.4 5 2008-01-28 19:48:08jhoblitt Exp $3 # $Id: SQL.pm,v 1.46 2008-01-30 00:19:06 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server::SQL; … … 172 172 storage_object.so_id, 173 173 uri, 174 assigned_vol_id 174 assigned_vol_id, 175 available 175 176 FROM storage_object 176 177 JOIN instance … … 242 243 SET ext_id = ? 243 244 WHERE ext_id = ? 245 }, 246 find_objects_with_unavailable_instances => qq{ 247 SELECT 248 so_id, 249 ext_id, 250 count(ins_id) as instances, 251 count(mountedvol.vol_id) as available_instances, 252 count(mountedvol.vol_id) < count(ins_id) as need_recovery, 253 count(mountedvol.vol_id) > 0 as recoverable 254 FROM storage_object 255 JOIN instance 256 USING(so_id) 257 LEFT JOIN mountedvol 258 USING(vol_id) 259 GROUP BY so_id 260 HAVING need_recovery = 1 244 261 }, 245 262 );
Note:
See TracChangeset
for help on using the changeset viewer.
