{"action":"created","comment":{"url":"https://api.github.com/repos/resin-io/diskio/pulls/comments/39067405","id":39067405,"diff_hunk":"@@ -59,7 +60,13 @@ exports.pipeStreamToDevice = (device, stream, callback) ->\n \n \tdeviceFileStream.on('error', callback)\n \n-\tstream\n-\t\t.pipe(deviceFileStream)\n-\t\t.on('error', _.unary(callback))\n-\t\t.on('close', _.unary(callback))\n+\tchunker = new chunkingStreams.SizeChunker\n+\t\tchunkSize: 512","path":"lib/drive.coffee","position":17,"original_position":17,"commit_id":"cf2ab8209076aeb2e10faabb6959576a6c1d11d1","original_commit_id":"cf2ab8209076aeb2e10faabb6959576a6c1d11d1","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line contains inconsistent indentation<br>Line contains tab indentation","created_at":"2015-09-09T16:49:44Z","updated_at":"2015-09-09T16:49:44Z","html_url":"https://github.com/resin-io/diskio/pull/4#discussion_r39067405","pull_request_url":"https://api.github.com/repos/resin-io/diskio/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/resin-io/diskio/pulls/comments/39067405"},"html":{"href":"https://github.com/resin-io/diskio/pull/4#discussion_r39067405"},"pull_request":{"href":"https://api.github.com/repos/resin-io/diskio/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/resin-io/diskio/pulls/4","id":44573949,"html_url":"https://github.com/resin-io/diskio/pull/4","diff_url":"https://github.com/resin-io/diskio/pull/4.diff","patch_url":"https://github.com/resin-io/diskio/pull/4.patch","issue_url":"https://api.github.com/repos/resin-io/diskio/issues/4","number":4,"state":"open","locked":false,"title":"Send aligned chunks to the device","user":{"login":"jviotti","id":2192773,"avatar_url":"https://avatars.githubusercontent.com/u/2192773?v=3","gravatar_id":"","url":"https://api.github.com/users/jviotti","html_url":"https://github.com/jviotti","followers_url":"https://api.github.com/users/jviotti/followers","following_url":"https://api.github.com/users/jviotti/following{/other_user}","gists_url":"https://api.github.com/users/jviotti/gists{/gist_id}","starred_url":"https://api.github.com/users/jviotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jviotti/subscriptions","organizations_url":"https://api.github.com/users/jviotti/orgs","repos_url":"https://api.github.com/users/jviotti/repos","events_url":"https://api.github.com/users/jviotti/events{/privacy}","received_events_url":"https://api.github.com/users/jviotti/received_events","type":"User","site_admin":false},"body":"For some reason, piping directly to Windows 10 results in EINVAL errors\nbecause data is not aligned properly.","created_at":"2015-09-09T16:49:39Z","updated_at":"2015-09-09T16:49:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94abee320524be2902becdcb76435f54d1b79de8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/resin-io/diskio/pulls/4/commits","review_comments_url":"https://api.github.com/repos/resin-io/diskio/pulls/4/comments","review_comment_url":"https://api.github.com/repos/resin-io/diskio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/resin-io/diskio/issues/4/comments","statuses_url":"https://api.github.com/repos/resin-io/diskio/statuses/cf2ab8209076aeb2e10faabb6959576a6c1d11d1","head":{"label":"resin-io:jviotti/fix/windows-stream","ref":"jviotti/fix/windows-stream","sha":"cf2ab8209076aeb2e10faabb6959576a6c1d11d1","user":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"repo":{"id":30193326,"name":"diskio","full_name":"resin-io/diskio","owner":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io/diskio","description":"Raw disk I/O that works in all major operating systems","fork":false,"url":"https://api.github.com/repos/resin-io/diskio","forks_url":"https://api.github.com/repos/resin-io/diskio/forks","keys_url":"https://api.github.com/repos/resin-io/diskio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io/diskio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io/diskio/teams","hooks_url":"https://api.github.com/repos/resin-io/diskio/hooks","issue_events_url":"https://api.github.com/repos/resin-io/diskio/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io/diskio/events","assignees_url":"https://api.github.com/repos/resin-io/diskio/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io/diskio/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io/diskio/tags","blobs_url":"https://api.github.com/repos/resin-io/diskio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io/diskio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io/diskio/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io/diskio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io/diskio/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io/diskio/languages","stargazers_url":"https://api.github.com/repos/resin-io/diskio/stargazers","contributors_url":"https://api.github.com/repos/resin-io/diskio/contributors","subscribers_url":"https://api.github.com/repos/resin-io/diskio/subscribers","subscription_url":"https://api.github.com/repos/resin-io/diskio/subscription","commits_url":"https://api.github.com/repos/resin-io/diskio/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io/diskio/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io/diskio/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io/diskio/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io/diskio/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io/diskio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io/diskio/merges","archive_url":"https://api.github.com/repos/resin-io/diskio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io/diskio/downloads","issues_url":"https://api.github.com/repos/resin-io/diskio/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io/diskio/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io/diskio/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io/diskio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io/diskio/labels{/name}","releases_url":"https://api.github.com/repos/resin-io/diskio/releases{/id}","created_at":"2015-02-02T15:26:30Z","updated_at":"2015-02-02T19:12:55Z","pushed_at":"2015-09-09T16:49:39Z","git_url":"git://github.com/resin-io/diskio.git","ssh_url":"git@github.com:resin-io/diskio.git","clone_url":"https://github.com/resin-io/diskio.git","svn_url":"https://github.com/resin-io/diskio","homepage":null,"size":288,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"resin-io:master","ref":"master","sha":"6c53998b7c5460440c95fcc223c62bf1e5fb4146","user":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"repo":{"id":30193326,"name":"diskio","full_name":"resin-io/diskio","owner":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io/diskio","description":"Raw disk I/O that works in all major operating systems","fork":false,"url":"https://api.github.com/repos/resin-io/diskio","forks_url":"https://api.github.com/repos/resin-io/diskio/forks","keys_url":"https://api.github.com/repos/resin-io/diskio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io/diskio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io/diskio/teams","hooks_url":"https://api.github.com/repos/resin-io/diskio/hooks","issue_events_url":"https://api.github.com/repos/resin-io/diskio/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io/diskio/events","assignees_url":"https://api.github.com/repos/resin-io/diskio/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io/diskio/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io/diskio/tags","blobs_url":"https://api.github.com/repos/resin-io/diskio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io/diskio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io/diskio/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io/diskio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io/diskio/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io/diskio/languages","stargazers_url":"https://api.github.com/repos/resin-io/diskio/stargazers","contributors_url":"https://api.github.com/repos/resin-io/diskio/contributors","subscribers_url":"https://api.github.com/repos/resin-io/diskio/subscribers","subscription_url":"https://api.github.com/repos/resin-io/diskio/subscription","commits_url":"https://api.github.com/repos/resin-io/diskio/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io/diskio/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io/diskio/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io/diskio/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io/diskio/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io/diskio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io/diskio/merges","archive_url":"https://api.github.com/repos/resin-io/diskio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io/diskio/downloads","issues_url":"https://api.github.com/repos/resin-io/diskio/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io/diskio/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io/diskio/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io/diskio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io/diskio/labels{/name}","releases_url":"https://api.github.com/repos/resin-io/diskio/releases{/id}","created_at":"2015-02-02T15:26:30Z","updated_at":"2015-02-02T19:12:55Z","pushed_at":"2015-09-09T16:49:39Z","git_url":"git://github.com/resin-io/diskio.git","ssh_url":"git@github.com:resin-io/diskio.git","clone_url":"https://github.com/resin-io/diskio.git","svn_url":"https://github.com/resin-io/diskio","homepage":null,"size":288,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/resin-io/diskio/pulls/4"},"html":{"href":"https://github.com/resin-io/diskio/pull/4"},"issue":{"href":"https://api.github.com/repos/resin-io/diskio/issues/4"},"comments":{"href":"https://api.github.com/repos/resin-io/diskio/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/resin-io/diskio/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/resin-io/diskio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/resin-io/diskio/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/resin-io/diskio/statuses/cf2ab8209076aeb2e10faabb6959576a6c1d11d1"}}}}