Index: /trunk/Nebulous-Server/Changes
===================================================================
--- /trunk/Nebulous-Server/Changes	(revision 18433)
+++ /trunk/Nebulous-Server/Changes	(revision 18434)
@@ -2,4 +2,6 @@
 
 0.13
+    - change find_objects_with_unavailable_instances query to only count
+      volumes marked as 'available'
     - fix nebdiskd so it doesn't removed volumes as being successful stat()'d
       even when the stat() failed under --debug
Index: /trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm
===================================================================
--- /trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm	(revision 18433)
+++ /trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm	(revision 18434)
@@ -1,5 +1,5 @@
 # Copyright (c) 2004  Joshua Hoblitt
 #
-# $Id: SQL.pm,v 1.61 2008-07-03 21:56:33 jhoblitt Exp $
+# $Id: SQL.pm,v 1.62 2008-07-07 23:37:48 jhoblitt Exp $
 
 package Nebulous::Server::SQL;
@@ -307,4 +307,5 @@
         JOIN mountedvol
             USING(vol_id)
+        WHERE mountedvol.available = 1
 --        WHERE storage_object_xattr.name = 'user.copies'
         GROUP BY so_id
