{"action":"created","comment":{"url":"https://api.github.com/repos/kata-containers/agent/pulls/comments/189810147","pull_request_review_id":122058947,"id":189810147,"diff_hunk":"@@ -187,9 +188,21 @@ type storageHandler func(storage pb.Storage, s *sandbox) (string, error)\n \n // storageHandlerList lists the supported drivers.\n var storageHandlerList = map[string]storageHandler{\n-\tdriver9pType:   virtio9pStorageHandler,\n-\tdriverBlkType:  virtioBlkStorageHandler,\n-\tdriverSCSIType: virtioSCSIStorageHandler,\n+\tdriver9pType:        virtio9pStorageHandler,\n+\tdriverBlkType:       virtioBlkStorageHandler,\n+\tdriverSCSIType:      virtioSCSIStorageHandler,\n+\tdriverEphemeralType: ephemeralStorageHandler,\n+}\n+\n+func ephemeralStorageHandler(storage pb.Storage, s *sandbox) (string, error) {\n+\tif _, err := os.Stat(storage.MountPoint); os.IsNotExist(err) {\n+\t\tos.MkdirAll(storage.MountPoint, os.ModePerm)\n+\t\t_, err = commonStorageHandler(storage)\n+\t\treturn \"\", err\n+\n+\t} else {","path":"mount.go","position":57,"original_position":57,"commit_id":"3558bb2a4a34629e7531f3b6b7b808869e01a267","original_commit_id":"3558bb2a4a34629e7531f3b6b7b808869e01a267","user":{"login":"caoruidong","id":5561983,"avatar_url":"https://avatars3.githubusercontent.com/u/5561983?v=4","gravatar_id":"","url":"https://api.github.com/users/caoruidong","html_url":"https://github.com/caoruidong","followers_url":"https://api.github.com/users/caoruidong/followers","following_url":"https://api.github.com/users/caoruidong/following{/other_user}","gists_url":"https://api.github.com/users/caoruidong/gists{/gist_id}","starred_url":"https://api.github.com/users/caoruidong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caoruidong/subscriptions","organizations_url":"https://api.github.com/users/caoruidong/orgs","repos_url":"https://api.github.com/users/caoruidong/repos","events_url":"https://api.github.com/users/caoruidong/events{/privacy}","received_events_url":"https://api.github.com/users/caoruidong/received_events","type":"User","site_admin":false},"body":"You can delete this else to make CI happy.","created_at":"2018-05-22T08:10:05Z","updated_at":"2018-05-22T08:11:40Z","html_url":"https://github.com/kata-containers/agent/pull/236#discussion_r189810147","pull_request_url":"https://api.github.com/repos/kata-containers/agent/pulls/236","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kata-containers/agent/pulls/comments/189810147"},"html":{"href":"https://github.com/kata-containers/agent/pull/236#discussion_r189810147"},"pull_request":{"href":"https://api.github.com/repos/kata-containers/agent/pulls/236"}}},"pull_request":{"url":"https://api.github.com/repos/kata-containers/agent/pulls/236","id":187937062,"html_url":"https://github.com/kata-containers/agent/pull/236","diff_url":"https://github.com/kata-containers/agent/pull/236.diff","patch_url":"https://github.com/kata-containers/agent/pull/236.patch","issue_url":"https://api.github.com/repos/kata-containers/agent/issues/236","number":236,"state":"open","locked":false,"title":"agent: Add support for ephemeral volumes","user":{"login":"harche","id":12152047,"avatar_url":"https://avatars0.githubusercontent.com/u/12152047?v=4","gravatar_id":"","url":"https://api.github.com/users/harche","html_url":"https://github.com/harche","followers_url":"https://api.github.com/users/harche/followers","following_url":"https://api.github.com/users/harche/following{/other_user}","gists_url":"https://api.github.com/users/harche/gists{/gist_id}","starred_url":"https://api.github.com/users/harche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harche/subscriptions","organizations_url":"https://api.github.com/users/harche/orgs","repos_url":"https://api.github.com/users/harche/repos","events_url":"https://api.github.com/users/harche/events{/privacy}","received_events_url":"https://api.github.com/users/harche/received_events","type":"User","site_admin":false},"body":"Ephemeral volumes needs to mounted inside VM\r\nand not passed as 9pfs mounts.\r\n\r\nSigned-off-by: Harshal Patil <harshal.patil@in.ibm.com>","created_at":"2018-05-14T20:10:57Z","updated_at":"2018-05-22T08:11:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"14ea612da2535ebfe4549dea8ee84cdf3ff742d0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kata-containers/agent/pulls/236/commits","review_comments_url":"https://api.github.com/repos/kata-containers/agent/pulls/236/comments","review_comment_url":"https://api.github.com/repos/kata-containers/agent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kata-containers/agent/issues/236/comments","statuses_url":"https://api.github.com/repos/kata-containers/agent/statuses/3558bb2a4a34629e7531f3b6b7b808869e01a267","head":{"label":"harche:tmpfs","ref":"tmpfs","sha":"3558bb2a4a34629e7531f3b6b7b808869e01a267","user":{"login":"harche","id":12152047,"avatar_url":"https://avatars0.githubusercontent.com/u/12152047?v=4","gravatar_id":"","url":"https://api.github.com/users/harche","html_url":"https://github.com/harche","followers_url":"https://api.github.com/users/harche/followers","following_url":"https://api.github.com/users/harche/following{/other_user}","gists_url":"https://api.github.com/users/harche/gists{/gist_id}","starred_url":"https://api.github.com/users/harche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harche/subscriptions","organizations_url":"https://api.github.com/users/harche/orgs","repos_url":"https://api.github.com/users/harche/repos","events_url":"https://api.github.com/users/harche/events{/privacy}","received_events_url":"https://api.github.com/users/harche/received_events","type":"User","site_admin":false},"repo":{"id":133415242,"name":"agent","full_name":"harche/agent","owner":{"login":"harche","id":12152047,"avatar_url":"https://avatars0.githubusercontent.com/u/12152047?v=4","gravatar_id":"","url":"https://api.github.com/users/harche","html_url":"https://github.com/harche","followers_url":"https://api.github.com/users/harche/followers","following_url":"https://api.github.com/users/harche/following{/other_user}","gists_url":"https://api.github.com/users/harche/gists{/gist_id}","starred_url":"https://api.github.com/users/harche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harche/subscriptions","organizations_url":"https://api.github.com/users/harche/orgs","repos_url":"https://api.github.com/users/harche/repos","events_url":"https://api.github.com/users/harche/events{/privacy}","received_events_url":"https://api.github.com/users/harche/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/harche/agent","description":"Virtual Machine agent for hardware virtualized containers","fork":true,"url":"https://api.github.com/repos/harche/agent","forks_url":"https://api.github.com/repos/harche/agent/forks","keys_url":"https://api.github.com/repos/harche/agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harche/agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harche/agent/teams","hooks_url":"https://api.github.com/repos/harche/agent/hooks","issue_events_url":"https://api.github.com/repos/harche/agent/issues/events{/number}","events_url":"https://api.github.com/repos/harche/agent/events","assignees_url":"https://api.github.com/repos/harche/agent/assignees{/user}","branches_url":"https://api.github.com/repos/harche/agent/branches{/branch}","tags_url":"https://api.github.com/repos/harche/agent/tags","blobs_url":"https://api.github.com/repos/harche/agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harche/agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harche/agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/harche/agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harche/agent/statuses/{sha}","languages_url":"https://api.github.com/repos/harche/agent/languages","stargazers_url":"https://api.github.com/repos/harche/agent/stargazers","contributors_url":"https://api.github.com/repos/harche/agent/contributors","subscribers_url":"https://api.github.com/repos/harche/agent/subscribers","subscription_url":"https://api.github.com/repos/harche/agent/subscription","commits_url":"https://api.github.com/repos/harche/agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/harche/agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/harche/agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/harche/agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/harche/agent/contents/{+path}","compare_url":"https://api.github.com/repos/harche/agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harche/agent/merges","archive_url":"https://api.github.com/repos/harche/agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harche/agent/downloads","issues_url":"https://api.github.com/repos/harche/agent/issues{/number}","pulls_url":"https://api.github.com/repos/harche/agent/pulls{/number}","milestones_url":"https://api.github.com/repos/harche/agent/milestones{/number}","notifications_url":"https://api.github.com/repos/harche/agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harche/agent/labels{/name}","releases_url":"https://api.github.com/repos/harche/agent/releases{/id}","deployments_url":"https://api.github.com/repos/harche/agent/deployments","created_at":"2018-05-14T20:05:31Z","updated_at":"2018-05-14T20:05:33Z","pushed_at":"2018-05-20T16:24:05Z","git_url":"git://github.com/harche/agent.git","ssh_url":"git@github.com:harche/agent.git","clone_url":"https://github.com/harche/agent.git","svn_url":"https://github.com/harche/agent","homepage":null,"size":4765,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kata-containers:master","ref":"master","sha":"39fc53ceb954dceb4057e0e64b30e705b0b4248c","user":{"login":"kata-containers","id":33289952,"avatar_url":"https://avatars3.githubusercontent.com/u/33289952?v=4","gravatar_id":"","url":"https://api.github.com/users/kata-containers","html_url":"https://github.com/kata-containers","followers_url":"https://api.github.com/users/kata-containers/followers","following_url":"https://api.github.com/users/kata-containers/following{/other_user}","gists_url":"https://api.github.com/users/kata-containers/gists{/gist_id}","starred_url":"https://api.github.com/users/kata-containers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kata-containers/subscriptions","organizations_url":"https://api.github.com/users/kata-containers/orgs","repos_url":"https://api.github.com/users/kata-containers/repos","events_url":"https://api.github.com/users/kata-containers/events{/privacy}","received_events_url":"https://api.github.com/users/kata-containers/received_events","type":"Organization","site_admin":false},"repo":{"id":110538699,"name":"agent","full_name":"kata-containers/agent","owner":{"login":"kata-containers","id":33289952,"avatar_url":"https://avatars3.githubusercontent.com/u/33289952?v=4","gravatar_id":"","url":"https://api.github.com/users/kata-containers","html_url":"https://github.com/kata-containers","followers_url":"https://api.github.com/users/kata-containers/followers","following_url":"https://api.github.com/users/kata-containers/following{/other_user}","gists_url":"https://api.github.com/users/kata-containers/gists{/gist_id}","starred_url":"https://api.github.com/users/kata-containers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kata-containers/subscriptions","organizations_url":"https://api.github.com/users/kata-containers/orgs","repos_url":"https://api.github.com/users/kata-containers/repos","events_url":"https://api.github.com/users/kata-containers/events{/privacy}","received_events_url":"https://api.github.com/users/kata-containers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kata-containers/agent","description":"Virtual Machine agent for hardware virtualized containers","fork":false,"url":"https://api.github.com/repos/kata-containers/agent","forks_url":"https://api.github.com/repos/kata-containers/agent/forks","keys_url":"https://api.github.com/repos/kata-containers/agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kata-containers/agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kata-containers/agent/teams","hooks_url":"https://api.github.com/repos/kata-containers/agent/hooks","issue_events_url":"https://api.github.com/repos/kata-containers/agent/issues/events{/number}","events_url":"https://api.github.com/repos/kata-containers/agent/events","assignees_url":"https://api.github.com/repos/kata-containers/agent/assignees{/user}","branches_url":"https://api.github.com/repos/kata-containers/agent/branches{/branch}","tags_url":"https://api.github.com/repos/kata-containers/agent/tags","blobs_url":"https://api.github.com/repos/kata-containers/agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kata-containers/agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kata-containers/agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/kata-containers/agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kata-containers/agent/statuses/{sha}","languages_url":"https://api.github.com/repos/kata-containers/agent/languages","stargazers_url":"https://api.github.com/repos/kata-containers/agent/stargazers","contributors_url":"https://api.github.com/repos/kata-containers/agent/contributors","subscribers_url":"https://api.github.com/repos/kata-containers/agent/subscribers","subscription_url":"https://api.github.com/repos/kata-containers/agent/subscription","commits_url":"https://api.github.com/repos/kata-containers/agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/kata-containers/agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/kata-containers/agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/kata-containers/agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/kata-containers/agent/contents/{+path}","compare_url":"https://api.github.com/repos/kata-containers/agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kata-containers/agent/merges","archive_url":"https://api.github.com/repos/kata-containers/agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kata-containers/agent/downloads","issues_url":"https://api.github.com/repos/kata-containers/agent/issues{/number}","pulls_url":"https://api.github.com/repos/kata-containers/agent/pulls{/number}","milestones_url":"https://api.github.com/repos/kata-containers/agent/milestones{/number}","notifications_url":"https://api.github.com/repos/kata-containers/agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kata-containers/agent/labels{/name}","releases_url":"https://api.github.com/repos/kata-containers/agent/releases{/id}","deployments_url":"https://api.github.com/repos/kata-containers/agent/deployments","created_at":"2017-11-13T11:15:36Z","updated_at":"2018-05-22T01:58:10Z","pushed_at":"2018-05-22T07:00:35Z","git_url":"git://github.com/kata-containers/agent.git","ssh_url":"git@github.com:kata-containers/agent.git","clone_url":"https://github.com/kata-containers/agent.git","svn_url":"https://github.com/kata-containers/agent","homepage":null,"size":4752,"stargazers_count":109,"watchers_count":109,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":32,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":33,"open_issues":32,"watchers":109,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kata-containers/agent/pulls/236"},"html":{"href":"https://github.com/kata-containers/agent/pull/236"},"issue":{"href":"https://api.github.com/repos/kata-containers/agent/issues/236"},"comments":{"href":"https://api.github.com/repos/kata-containers/agent/issues/236/comments"},"review_comments":{"href":"https://api.github.com/repos/kata-containers/agent/pulls/236/comments"},"review_comment":{"href":"https://api.github.com/repos/kata-containers/agent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kata-containers/agent/pulls/236/commits"},"statuses":{"href":"https://api.github.com/repos/kata-containers/agent/statuses/3558bb2a4a34629e7531f3b6b7b808869e01a267"}},"author_association":"NONE"}}
{"actor":{"display_login":"caoruidong"}}