{"action":"created","issue":{"url":"https://api.github.com/repos/docker/for-win/issues/15","repository_url":"https://api.github.com/repos/docker/for-win","labels_url":"https://api.github.com/repos/docker/for-win/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/docker/for-win/issues/15/comments","events_url":"https://api.github.com/repos/docker/for-win/issues/15/events","html_url":"https://github.com/docker/for-win/issues/15","id":168623466,"number":15,"title":"Cifs mount argument rfc, add noserverino","user":{"login":"Sebas-","id":2677600,"avatar_url":"https://avatars.githubusercontent.com/u/2677600?v=3","gravatar_id":"","url":"https://api.github.com/users/Sebas-","html_url":"https://github.com/Sebas-","followers_url":"https://api.github.com/users/Sebas-/followers","following_url":"https://api.github.com/users/Sebas-/following{/other_user}","gists_url":"https://api.github.com/users/Sebas-/gists{/gist_id}","starred_url":"https://api.github.com/users/Sebas-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sebas-/subscriptions","organizations_url":"https://api.github.com/users/Sebas-/orgs","repos_url":"https://api.github.com/users/Sebas-/repos","events_url":"https://api.github.com/users/Sebas-/events{/privacy}","received_events_url":"https://api.github.com/users/Sebas-/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/for-win/labels/kind/feature","name":"kind/feature","color":"aab3ab"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-08-01T11:19:54Z","updated_at":"2016-08-10T21:26:00Z","closed_at":"2016-08-04T09:33:53Z","body":"### Expected behavior\r\nA php application inside a i386 container should be able to recognize directories when using calls like 'stat' and 'is_dir' on mounted volumes.\r\n\r\n### Actual behavior\r\n'stat' and 'is_dir' return false when executing the command on a mount volume path.\r\n\r\n### Information\r\n\r\nThe following stackoverflow post explains the issue: \r\nhttp://stackoverflow.com/questions/26718203/php-file-directory-stat-related-functions-do-not-work-on-mounted-cifs\r\n\r\nI have now created a remount tool (simple console app) as a temporary solution, that unmounts, and mounts the drives again with the added mount option.\r\nIn the method \"CifsOptions\" (Cifs.cs), I have added stringList.Add(\"noserverino\"); just before the return string join.\r\nThen simply do the same thing the app does, load settings, retrieve credentials, loop the SharedDrives setting, and umount+mount the drive.\r\n\r\nI don't think it does any harm if the option is added in the application, but I could be wrong. \r\n\r\nPerhaps it would be nice to make this part of some sort of advanced options?\r\n\r\nIf the option can not be added, and the advanced option thing is also not possible I have to wait until Docker for windows gets a proper source release, patching the dll's just for this seems overkill to me :)\r\n\r\n### Steps to reproduce the behavior\r\n\r\nHost system: Windows 10 Pro x64 (issue is probably only on x64 systems, not sure)\r\n\r\nCreate a docker container based on 32bit/debian\r\nInstall PHP (5.3)\r\nRun the container and mount for example your c drive to /mnt\r\nin the container, execute this bit of code:\r\n<?php var_dump(is_dir(\"/mnt\")); \r\n\r\nresult is false, should be true\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/for-win/issues/comments/239009646","html_url":"https://github.com/docker/for-win/issues/15#issuecomment-239009646","issue_url":"https://api.github.com/repos/docker/for-win/issues/15","id":239009646,"user":{"login":"cedseat","id":4703812,"avatar_url":"https://avatars.githubusercontent.com/u/4703812?v=3","gravatar_id":"","url":"https://api.github.com/users/cedseat","html_url":"https://github.com/cedseat","followers_url":"https://api.github.com/users/cedseat/followers","following_url":"https://api.github.com/users/cedseat/following{/other_user}","gists_url":"https://api.github.com/users/cedseat/gists{/gist_id}","starred_url":"https://api.github.com/users/cedseat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cedseat/subscriptions","organizations_url":"https://api.github.com/users/cedseat/orgs","repos_url":"https://api.github.com/users/cedseat/repos","events_url":"https://api.github.com/users/cedseat/events{/privacy}","received_events_url":"https://api.github.com/users/cedseat/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T21:26:00Z","updated_at":"2016-08-10T21:26:00Z","body":"Thanks! Where did you found the *.cs source codes?"}}
{"actor":{"display_login":"cedseat"}}