vold: Add mounted filesystems to dump cmd

Change-Id: If025e7ee10a79ff089920a6d0c1a52358b2d2c22
Signed-off-by: San Mehat <san@google.com>
diff --git a/CommandListener.cpp b/CommandListener.cpp
index 72794ae..a200007 100644
--- a/CommandListener.cpp
+++ b/CommandListener.cpp
@@ -88,6 +88,16 @@
     if (Devmapper::dumpState(cli)) {
         cli->sendMsg(ResponseCode::CommandOkay, "Devmapper dump failed", true);
     }
+    cli->sendMsg(0, "Dumping mounted filesystems", false);
+    FILE *fp = fopen("/proc/mounts", "r");
+    if (fp) {
+        char line[1024];
+        while (fgets(line, sizeof(line), fp)) {
+            line[strlen(line)-1] = '\0';
+            cli->sendMsg(0, line, false);;
+        }
+        fclose(fp);
+    }
 
     cli->sendMsg(ResponseCode::CommandOkay, "dump complete", false);
     return 0;
diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index dd25d86..7a44e2e 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -928,7 +928,6 @@
             fclose(fp);
             return true;
         }
-
     }
 
     fclose(fp);