Index: /trunk/Nebulous-Server/Changes
===================================================================
--- /trunk/Nebulous-Server/Changes	(revision 19791)
+++ /trunk/Nebulous-Server/Changes	(revision 19792)
@@ -8,4 +8,6 @@
       monitoring and then only for paths that actually have volumes mounted on
       them
+    - fix getmountedvol() stored proc to not add volumes to the mountedvol
+      table that are not available
 
 0.15 Thu Sep 11 13:00:59 HST 2008
Index: /trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm
===================================================================
--- /trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm	(revision 19791)
+++ /trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm	(revision 19792)
@@ -1,5 +1,5 @@
 # Copyright (c) 2004  Joshua Hoblitt
 #
-# $Id: SQL.pm,v 1.64 2008-09-22 21:22:52 jhoblitt Exp $
+# $Id: SQL.pm,v 1.65 2008-10-01 02:06:17 jhoblitt Exp $
 
 package Nebulous::Server::SQL;
@@ -523,4 +523,5 @@
                 (SELECT *, INSTR(pathvar, mountpoint) = 1 as substring
                 FROM mount
+                HAVING substring = 1
                 ORDER BY substring DESC, LENGTH(mountpoint) DESC
                 LIMIT 1) as bar;
