Index: trunk/Nebulous-Server/bin/nebdiskd
===================================================================
--- trunk/Nebulous-Server/bin/nebdiskd	(revision 34915)
+++ trunk/Nebulous-Server/bin/nebdiskd	(revision 34929)
@@ -20,12 +20,12 @@
 
 my (
-    $debug, 
-    $db, 
-    $dbhost, 
-    $dbuser, 
-    $dbpass, 
-    $pidfile, 
-    $stop, 
-    $restart, 
+    $debug,
+    $db,
+    $dbhost,
+    $dbuser,
+    $dbpass,
+    $pidfile,
+    $stop,
+    $restart,
     $verbose,
     $user,
@@ -142,5 +142,5 @@
 $SIG{TERM} = sub { unlink_pid_file($pidfile); exit(); };
 $SIG{INT}  = $SIG{TERM};
-$SIG{HUP}  = sub { $c = read_rcfile($rcfile) }; 
+$SIG{HUP}  = sub { $c = read_rcfile($rcfile) };
 
 my $date = localtime();
@@ -205,17 +205,19 @@
             $query->finish;
         }
-        
+
         # determine valid mountpoints
         foreach my $mnt (@$mounts) {
             my $mountpoint = $mnt->{'mountpoint'};
-	    my $hostname = $mnt->{'host'};
- 	    my $valid_mountpoint = 1;
+            my $alt_mountpoint = $mountpoint;
+            $alt_mountpoint =~ s/data/export/;
+            my $hostname = $mnt->{'host'};
+            my $valid_mountpoint = 1;
 
             # fetch stats on the device using ssh and df
-            my $dev_info = df_through_ssh($hostname, $mountpoint, 1024);
+            my $dev_info = df_through_ssh($hostname, $alt_mountpoint, 1024);
             unless (defined $dev_info) {
-		$valid_mountpoint = 0;
-                $log->error("can't find device info for $mountpoint");
-		$d_query->execute($mountpoint);
+                $valid_mountpoint = 0;
+                $log->error("can't find device info for $mountpoint / $alt_mountpoint");
+                $d_query->execute($mountpoint);
                 next;
             }
@@ -277,5 +279,5 @@
 #        $dbh->commit;
     };
-    if ($@) { 
+    if ($@) {
 #        $dbh->rollback;
         $log->logdie($@);
@@ -361,5 +363,5 @@
     $log->debug("Received from ssh = [$df_data]");
     unless ($df_data) {
-	return undef;
+        return undef;
     }
     my @data = split(/:/, $df_data);
@@ -483,5 +485,5 @@
 =item * C<NEB_PASS>
 
-Equivalent to --dbpass|-p 
+Equivalent to --dbpass|-p
 
 =back
