{"action":"created","comment":{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/pulls/comments/49998621","id":49998621,"diff_hunk":"@@ -87,9 +89,48 @@ sub _getDrives {\n             TYPE        => $type[$object->{DriveType}],\n             VOLUMN      => $object->{VolumeName},\n         };\n+\n+        $seen{$object->{DeviceID} || $object->{Caption}} = 1;\n+    }\n+\n+    # Scan Win32_Volume to check for mounted point drives\n+    foreach my $object (getWMIObjects(\n+        class      => 'Win32_Volume',\n+        properties => [ qw/\n+            InstallDate Description FreeSpace FileSystem Name Caption DriveLetter\n+            SerialNumber Capacity DriveType Label\n+        / ]\n+    )) {\n+        # Skip volume still seen as Win32_LogicalDisk class\n+        if (@drives && exists($object->{DriveLetter}) && $object->{DriveLetter}) {\n+            $seen{$object->{DriveLetter}}","path":"lib/FusionInventory/Agent/Task/Inventory/Win32/Drives.pm","position":27,"original_position":27,"commit_id":"8f2f0e483f88ad943fe4625af04b6379eaa06979","original_commit_id":"8f2f0e483f88ad943fe4625af04b6379eaa06979","user":{"login":"g-bougard","id":12514489,"avatar_url":"https://avatars.githubusercontent.com/u/12514489?v=3","gravatar_id":"","url":"https://api.github.com/users/g-bougard","html_url":"https://github.com/g-bougard","followers_url":"https://api.github.com/users/g-bougard/followers","following_url":"https://api.github.com/users/g-bougard/following{/other_user}","gists_url":"https://api.github.com/users/g-bougard/gists{/gist_id}","starred_url":"https://api.github.com/users/g-bougard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g-bougard/subscriptions","organizations_url":"https://api.github.com/users/g-bougard/orgs","repos_url":"https://api.github.com/users/g-bougard/repos","events_url":"https://api.github.com/users/g-bougard/events{/privacy}","received_events_url":"https://api.github.com/users/g-bougard/received_events","type":"User","site_admin":false},"body":"Hi David, yes they can, but you can mount a drive over a folder like over C:\\PathToMountPoint\\ and this was not reported.","created_at":"2016-01-18T13:34:01Z","updated_at":"2016-01-18T13:34:01Z","html_url":"https://github.com/fusioninventory/fusioninventory-agent/pull/81#discussion_r49998621","pull_request_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/pulls/comments/49998621"},"html":{"href":"https://github.com/fusioninventory/fusioninventory-agent/pull/81#discussion_r49998621"},"pull_request":{"href":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/pulls/81","id":56195635,"html_url":"https://github.com/fusioninventory/fusioninventory-agent/pull/81","diff_url":"https://github.com/fusioninventory/fusioninventory-agent/pull/81.diff","patch_url":"https://github.com/fusioninventory/fusioninventory-agent/pull/81.patch","issue_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/issues/81","number":81,"state":"closed","locked":false,"title":"2.3.x+report win32 mounted drives","user":{"login":"g-bougard","id":12514489,"avatar_url":"https://avatars.githubusercontent.com/u/12514489?v=3","gravatar_id":"","url":"https://api.github.com/users/g-bougard","html_url":"https://github.com/g-bougard","followers_url":"https://api.github.com/users/g-bougard/followers","following_url":"https://api.github.com/users/g-bougard/following{/other_user}","gists_url":"https://api.github.com/users/g-bougard/gists{/gist_id}","starred_url":"https://api.github.com/users/g-bougard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g-bougard/subscriptions","organizations_url":"https://api.github.com/users/g-bougard/orgs","repos_url":"https://api.github.com/users/g-bougard/repos","events_url":"https://api.github.com/users/g-bougard/events{/privacy}","received_events_url":"https://api.github.com/users/g-bougard/received_events","type":"User","site_admin":false},"body":"This update adds Win32 mounted drives and also hidden volumes to inventory task.","created_at":"2016-01-15T17:11:28Z","updated_at":"2016-01-18T13:34:01Z","closed_at":"2016-01-16T21:59:21Z","merged_at":"2016-01-16T21:59:21Z","merge_commit_sha":"6298449a11041c0ce06c77778d7c1d9dbf2cdcd0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/pulls/81/commits","review_comments_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/pulls/81/comments","review_comment_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/issues/81/comments","statuses_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/statuses/8f2f0e483f88ad943fe4625af04b6379eaa06979","head":{"label":"g-bougard:2.3.x+report-win32-mounted-drives","ref":"2.3.x+report-win32-mounted-drives","sha":"8f2f0e483f88ad943fe4625af04b6379eaa06979","user":{"login":"g-bougard","id":12514489,"avatar_url":"https://avatars.githubusercontent.com/u/12514489?v=3","gravatar_id":"","url":"https://api.github.com/users/g-bougard","html_url":"https://github.com/g-bougard","followers_url":"https://api.github.com/users/g-bougard/followers","following_url":"https://api.github.com/users/g-bougard/following{/other_user}","gists_url":"https://api.github.com/users/g-bougard/gists{/gist_id}","starred_url":"https://api.github.com/users/g-bougard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g-bougard/subscriptions","organizations_url":"https://api.github.com/users/g-bougard/orgs","repos_url":"https://api.github.com/users/g-bougard/repos","events_url":"https://api.github.com/users/g-bougard/events{/privacy}","received_events_url":"https://api.github.com/users/g-bougard/received_events","type":"User","site_admin":false},"repo":{"id":35888301,"name":"fusioninventory-agent","full_name":"g-bougard/fusioninventory-agent","owner":{"login":"g-bougard","id":12514489,"avatar_url":"https://avatars.githubusercontent.com/u/12514489?v=3","gravatar_id":"","url":"https://api.github.com/users/g-bougard","html_url":"https://github.com/g-bougard","followers_url":"https://api.github.com/users/g-bougard/followers","following_url":"https://api.github.com/users/g-bougard/following{/other_user}","gists_url":"https://api.github.com/users/g-bougard/gists{/gist_id}","starred_url":"https://api.github.com/users/g-bougard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g-bougard/subscriptions","organizations_url":"https://api.github.com/users/g-bougard/orgs","repos_url":"https://api.github.com/users/g-bougard/repos","events_url":"https://api.github.com/users/g-bougard/events{/privacy}","received_events_url":"https://api.github.com/users/g-bougard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/g-bougard/fusioninventory-agent","description":"FusionInventory Agent","fork":true,"url":"https://api.github.com/repos/g-bougard/fusioninventory-agent","forks_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/forks","keys_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/teams","hooks_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/hooks","issue_events_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/issues/events{/number}","events_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/events","assignees_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/assignees{/user}","branches_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/branches{/branch}","tags_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/tags","blobs_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/languages","stargazers_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/stargazers","contributors_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/contributors","subscribers_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/subscribers","subscription_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/subscription","commits_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/contents/{+path}","compare_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/merges","archive_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/downloads","issues_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/issues{/number}","pulls_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/labels{/name}","releases_url":"https://api.github.com/repos/g-bougard/fusioninventory-agent/releases{/id}","created_at":"2015-05-19T14:44:31Z","updated_at":"2016-01-11T15:11:22Z","pushed_at":"2016-01-15T14:27:49Z","git_url":"git://github.com/g-bougard/fusioninventory-agent.git","ssh_url":"git@github.com:g-bougard/fusioninventory-agent.git","clone_url":"https://github.com/g-bougard/fusioninventory-agent.git","svn_url":"https://github.com/g-bougard/fusioninventory-agent","homepage":"http://www.FusionInventory.org/","size":24593,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fusioninventory:2.3.x","ref":"2.3.x","sha":"05f3bad5c9607f108157aaf820cb648fc65f04fc","user":{"login":"fusioninventory","id":239747,"avatar_url":"https://avatars.githubusercontent.com/u/239747?v=3","gravatar_id":"","url":"https://api.github.com/users/fusioninventory","html_url":"https://github.com/fusioninventory","followers_url":"https://api.github.com/users/fusioninventory/followers","following_url":"https://api.github.com/users/fusioninventory/following{/other_user}","gists_url":"https://api.github.com/users/fusioninventory/gists{/gist_id}","starred_url":"https://api.github.com/users/fusioninventory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusioninventory/subscriptions","organizations_url":"https://api.github.com/users/fusioninventory/orgs","repos_url":"https://api.github.com/users/fusioninventory/repos","events_url":"https://api.github.com/users/fusioninventory/events{/privacy}","received_events_url":"https://api.github.com/users/fusioninventory/received_events","type":"Organization","site_admin":false},"repo":{"id":601251,"name":"fusioninventory-agent","full_name":"fusioninventory/fusioninventory-agent","owner":{"login":"fusioninventory","id":239747,"avatar_url":"https://avatars.githubusercontent.com/u/239747?v=3","gravatar_id":"","url":"https://api.github.com/users/fusioninventory","html_url":"https://github.com/fusioninventory","followers_url":"https://api.github.com/users/fusioninventory/followers","following_url":"https://api.github.com/users/fusioninventory/following{/other_user}","gists_url":"https://api.github.com/users/fusioninventory/gists{/gist_id}","starred_url":"https://api.github.com/users/fusioninventory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusioninventory/subscriptions","organizations_url":"https://api.github.com/users/fusioninventory/orgs","repos_url":"https://api.github.com/users/fusioninventory/repos","events_url":"https://api.github.com/users/fusioninventory/events{/privacy}","received_events_url":"https://api.github.com/users/fusioninventory/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fusioninventory/fusioninventory-agent","description":"FusionInventory Agent","fork":false,"url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent","forks_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/forks","keys_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/teams","hooks_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/hooks","issue_events_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/issues/events{/number}","events_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/events","assignees_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/assignees{/user}","branches_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/branches{/branch}","tags_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/tags","blobs_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/languages","stargazers_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/stargazers","contributors_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/contributors","subscribers_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/subscribers","subscription_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/subscription","commits_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/contents/{+path}","compare_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/merges","archive_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/downloads","issues_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/issues{/number}","pulls_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/labels{/name}","releases_url":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/releases{/id}","created_at":"2010-04-08T18:48:46Z","updated_at":"2016-01-08T13:55:52Z","pushed_at":"2016-01-16T21:59:21Z","git_url":"git://github.com/fusioninventory/fusioninventory-agent.git","ssh_url":"git@github.com:fusioninventory/fusioninventory-agent.git","clone_url":"https://github.com/fusioninventory/fusioninventory-agent.git","svn_url":"https://github.com/fusioninventory/fusioninventory-agent","homepage":"http://www.FusionInventory.org/","size":29488,"stargazers_count":42,"watchers_count":42,"language":"Perl","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":12,"forks":38,"open_issues":12,"watchers":42,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/pulls/81"},"html":{"href":"https://github.com/fusioninventory/fusioninventory-agent/pull/81"},"issue":{"href":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/issues/81"},"comments":{"href":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/fusioninventory/fusioninventory-agent/statuses/8f2f0e483f88ad943fe4625af04b6379eaa06979"}}}}