Changeset 13047 for trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm
- Timestamp:
- Apr 26, 2007, 1:47:05 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm
r13041 r13047 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: SQL.pm,v 1.2 6 2007-04-26 20:27:33 jhoblitt Exp $3 # $Id: SQL.pm,v 1.27 2007-04-26 23:45:03 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server::SQL; … … 116 116 get_storage_volume_byname => qq{ 117 117 SELECT 118 mountpoint,118 path as volume, 119 119 total - used as free 120 FROM volume 121 JOIN mount -- join limits us to currently mounted volumes 122 ON volume.path = mount.mountpoint 120 FROM mountedvol 123 121 WHERE 124 122 used / total < ? … … 129 127 get_storage_volume => qq{ 130 128 SELECT 131 mountpoint,129 path as volume, 132 130 total - used as free 133 FROM volume 134 JOIN mount -- join limits us to currently mounted volumes 135 ON volume.path = mount.mountpoint 131 FROM mountedvol 136 132 WHERE 137 133 used / total < ? … … 152 148 FROM volume 153 149 WHERE name = ? 150 }, 151 find_objects => qq{ 152 SELECT * 153 FROM storage_object 154 WHERE ext_id REGEXP ? 154 155 }, 155 156 ); … … 315 316 ) ENGINE=MEMORY; 316 317 317 -- iterat orover the volume table finding the coresponding entry in the318 -- iterate over the volume table finding the coresponding entry in the 318 319 -- mount table and inserting union of the volume & mount row into the 319 320 -- mountedvol table
Note:
See TracChangeset
for help on using the changeset viewer.
