[Filesystem] Store only storages provided by platform.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Tue, 21 Apr 2015 14:46:51 +0000 (16:46 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Tue, 21 Apr 2015 14:46:51 +0000 (16:46 +0200)
Change-Id: Ie609619f03f98ae1833705e9cd82fa2d85918ac3

src/filesystem/filesystem_manager.cc

index 9e011f5..8fbe22d 100644 (file)
@@ -198,7 +198,9 @@ void FilesystemManager::FetchStorages(
   auto result = common::VirtualFs::GetInstance().GetStorages();
 
   for (auto storage : result) {
-    ids_.insert(storage.id_);
+    if (storage.id_ >= 0) {
+      ids_.insert(storage.id_);
+    }
   }
 
   success_cb(result);