{"action":"closed","number":29,"pull_request":{"url":"https://api.github.com/repos/agrover/tcmu-runner/pulls/29","id":55688799,"html_url":"https://github.com/agrover/tcmu-runner/pull/29","diff_url":"https://github.com/agrover/tcmu-runner/pull/29.diff","patch_url":"https://github.com/agrover/tcmu-runner/pull/29.patch","issue_url":"https://api.github.com/repos/agrover/tcmu-runner/issues/29","number":29,"state":"closed","locked":false,"title":"Use pread/pwrite instead of lseek+read/write.","user":{"login":"mkhon","id":3022749,"avatar_url":"https://avatars.githubusercontent.com/u/3022749?v=3","gravatar_id":"","url":"https://api.github.com/users/mkhon","html_url":"https://github.com/mkhon","followers_url":"https://api.github.com/users/mkhon/followers","following_url":"https://api.github.com/users/mkhon/following{/other_user}","gists_url":"https://api.github.com/users/mkhon/gists{/gist_id}","starred_url":"https://api.github.com/users/mkhon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkhon/subscriptions","organizations_url":"https://api.github.com/users/mkhon/orgs","repos_url":"https://api.github.com/users/mkhon/repos","events_url":"https://api.github.com/users/mkhon/events{/privacy}","received_events_url":"https://api.github.com/users/mkhon/received_events","type":"User","site_admin":false},"body":"- This is a pre-requisite for multithreaded file handler (see #28).\r\n- Yet another fix that could be done is to increment/decrement remaining/offset (when doing pwrite) by 'ret' and not by 'to_copy' which handles partial writes more properly","created_at":"2016-01-11T22:37:57Z","updated_at":"2016-01-11T22:57:01Z","closed_at":"2016-01-11T22:57:00Z","merged_at":"2016-01-11T22:57:00Z","merge_commit_sha":"56986cbf298b76c592cab1901868adacb2736afc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/agrover/tcmu-runner/pulls/29/commits","review_comments_url":"https://api.github.com/repos/agrover/tcmu-runner/pulls/29/comments","review_comment_url":"https://api.github.com/repos/agrover/tcmu-runner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/agrover/tcmu-runner/issues/29/comments","statuses_url":"https://api.github.com/repos/agrover/tcmu-runner/statuses/f53cc97078feaccc2c075d71165f52d39ea90214","head":{"label":"mkhon:pread-pwrite","ref":"pread-pwrite","sha":"f53cc97078feaccc2c075d71165f52d39ea90214","user":{"login":"mkhon","id":3022749,"avatar_url":"https://avatars.githubusercontent.com/u/3022749?v=3","gravatar_id":"","url":"https://api.github.com/users/mkhon","html_url":"https://github.com/mkhon","followers_url":"https://api.github.com/users/mkhon/followers","following_url":"https://api.github.com/users/mkhon/following{/other_user}","gists_url":"https://api.github.com/users/mkhon/gists{/gist_id}","starred_url":"https://api.github.com/users/mkhon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkhon/subscriptions","organizations_url":"https://api.github.com/users/mkhon/orgs","repos_url":"https://api.github.com/users/mkhon/repos","events_url":"https://api.github.com/users/mkhon/events{/privacy}","received_events_url":"https://api.github.com/users/mkhon/received_events","type":"User","site_admin":false},"repo":{"id":45786777,"name":"tcmu-runner","full_name":"mkhon/tcmu-runner","owner":{"login":"mkhon","id":3022749,"avatar_url":"https://avatars.githubusercontent.com/u/3022749?v=3","gravatar_id":"","url":"https://api.github.com/users/mkhon","html_url":"https://github.com/mkhon","followers_url":"https://api.github.com/users/mkhon/followers","following_url":"https://api.github.com/users/mkhon/following{/other_user}","gists_url":"https://api.github.com/users/mkhon/gists{/gist_id}","starred_url":"https://api.github.com/users/mkhon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkhon/subscriptions","organizations_url":"https://api.github.com/users/mkhon/orgs","repos_url":"https://api.github.com/users/mkhon/repos","events_url":"https://api.github.com/users/mkhon/events{/privacy}","received_events_url":"https://api.github.com/users/mkhon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mkhon/tcmu-runner","description":"A daemon that handles the userspace side of the LIO TCM-User backstore.","fork":true,"url":"https://api.github.com/repos/mkhon/tcmu-runner","forks_url":"https://api.github.com/repos/mkhon/tcmu-runner/forks","keys_url":"https://api.github.com/repos/mkhon/tcmu-runner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mkhon/tcmu-runner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mkhon/tcmu-runner/teams","hooks_url":"https://api.github.com/repos/mkhon/tcmu-runner/hooks","issue_events_url":"https://api.github.com/repos/mkhon/tcmu-runner/issues/events{/number}","events_url":"https://api.github.com/repos/mkhon/tcmu-runner/events","assignees_url":"https://api.github.com/repos/mkhon/tcmu-runner/assignees{/user}","branches_url":"https://api.github.com/repos/mkhon/tcmu-runner/branches{/branch}","tags_url":"https://api.github.com/repos/mkhon/tcmu-runner/tags","blobs_url":"https://api.github.com/repos/mkhon/tcmu-runner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mkhon/tcmu-runner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mkhon/tcmu-runner/git/refs{/sha}","trees_url":"https://api.github.com/repos/mkhon/tcmu-runner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mkhon/tcmu-runner/statuses/{sha}","languages_url":"https://api.github.com/repos/mkhon/tcmu-runner/languages","stargazers_url":"https://api.github.com/repos/mkhon/tcmu-runner/stargazers","contributors_url":"https://api.github.com/repos/mkhon/tcmu-runner/contributors","subscribers_url":"https://api.github.com/repos/mkhon/tcmu-runner/subscribers","subscription_url":"https://api.github.com/repos/mkhon/tcmu-runner/subscription","commits_url":"https://api.github.com/repos/mkhon/tcmu-runner/commits{/sha}","git_commits_url":"https://api.github.com/repos/mkhon/tcmu-runner/git/commits{/sha}","comments_url":"https://api.github.com/repos/mkhon/tcmu-runner/comments{/number}","issue_comment_url":"https://api.github.com/repos/mkhon/tcmu-runner/issues/comments{/number}","contents_url":"https://api.github.com/repos/mkhon/tcmu-runner/contents/{+path}","compare_url":"https://api.github.com/repos/mkhon/tcmu-runner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mkhon/tcmu-runner/merges","archive_url":"https://api.github.com/repos/mkhon/tcmu-runner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mkhon/tcmu-runner/downloads","issues_url":"https://api.github.com/repos/mkhon/tcmu-runner/issues{/number}","pulls_url":"https://api.github.com/repos/mkhon/tcmu-runner/pulls{/number}","milestones_url":"https://api.github.com/repos/mkhon/tcmu-runner/milestones{/number}","notifications_url":"https://api.github.com/repos/mkhon/tcmu-runner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mkhon/tcmu-runner/labels{/name}","releases_url":"https://api.github.com/repos/mkhon/tcmu-runner/releases{/id}","created_at":"2015-11-08T15:44:20Z","updated_at":"2016-01-11T22:32:00Z","pushed_at":"2016-01-11T22:35:53Z","git_url":"git://github.com/mkhon/tcmu-runner.git","ssh_url":"git@github.com:mkhon/tcmu-runner.git","clone_url":"https://github.com/mkhon/tcmu-runner.git","svn_url":"https://github.com/mkhon/tcmu-runner","homepage":null,"size":159,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"agrover:master","ref":"master","sha":"b5bdd281cf765e15cb8743ce5b11fe0eb0f43661","user":{"login":"agrover","id":2305,"avatar_url":"https://avatars.githubusercontent.com/u/2305?v=3","gravatar_id":"","url":"https://api.github.com/users/agrover","html_url":"https://github.com/agrover","followers_url":"https://api.github.com/users/agrover/followers","following_url":"https://api.github.com/users/agrover/following{/other_user}","gists_url":"https://api.github.com/users/agrover/gists{/gist_id}","starred_url":"https://api.github.com/users/agrover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrover/subscriptions","organizations_url":"https://api.github.com/users/agrover/orgs","repos_url":"https://api.github.com/users/agrover/repos","events_url":"https://api.github.com/users/agrover/events{/privacy}","received_events_url":"https://api.github.com/users/agrover/received_events","type":"User","site_admin":false},"repo":{"id":21918673,"name":"tcmu-runner","full_name":"agrover/tcmu-runner","owner":{"login":"agrover","id":2305,"avatar_url":"https://avatars.githubusercontent.com/u/2305?v=3","gravatar_id":"","url":"https://api.github.com/users/agrover","html_url":"https://github.com/agrover","followers_url":"https://api.github.com/users/agrover/followers","following_url":"https://api.github.com/users/agrover/following{/other_user}","gists_url":"https://api.github.com/users/agrover/gists{/gist_id}","starred_url":"https://api.github.com/users/agrover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrover/subscriptions","organizations_url":"https://api.github.com/users/agrover/orgs","repos_url":"https://api.github.com/users/agrover/repos","events_url":"https://api.github.com/users/agrover/events{/privacy}","received_events_url":"https://api.github.com/users/agrover/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agrover/tcmu-runner","description":"A daemon that handles the userspace side of the LIO TCM-User backstore.","fork":false,"url":"https://api.github.com/repos/agrover/tcmu-runner","forks_url":"https://api.github.com/repos/agrover/tcmu-runner/forks","keys_url":"https://api.github.com/repos/agrover/tcmu-runner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agrover/tcmu-runner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agrover/tcmu-runner/teams","hooks_url":"https://api.github.com/repos/agrover/tcmu-runner/hooks","issue_events_url":"https://api.github.com/repos/agrover/tcmu-runner/issues/events{/number}","events_url":"https://api.github.com/repos/agrover/tcmu-runner/events","assignees_url":"https://api.github.com/repos/agrover/tcmu-runner/assignees{/user}","branches_url":"https://api.github.com/repos/agrover/tcmu-runner/branches{/branch}","tags_url":"https://api.github.com/repos/agrover/tcmu-runner/tags","blobs_url":"https://api.github.com/repos/agrover/tcmu-runner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agrover/tcmu-runner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agrover/tcmu-runner/git/refs{/sha}","trees_url":"https://api.github.com/repos/agrover/tcmu-runner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agrover/tcmu-runner/statuses/{sha}","languages_url":"https://api.github.com/repos/agrover/tcmu-runner/languages","stargazers_url":"https://api.github.com/repos/agrover/tcmu-runner/stargazers","contributors_url":"https://api.github.com/repos/agrover/tcmu-runner/contributors","subscribers_url":"https://api.github.com/repos/agrover/tcmu-runner/subscribers","subscription_url":"https://api.github.com/repos/agrover/tcmu-runner/subscription","commits_url":"https://api.github.com/repos/agrover/tcmu-runner/commits{/sha}","git_commits_url":"https://api.github.com/repos/agrover/tcmu-runner/git/commits{/sha}","comments_url":"https://api.github.com/repos/agrover/tcmu-runner/comments{/number}","issue_comment_url":"https://api.github.com/repos/agrover/tcmu-runner/issues/comments{/number}","contents_url":"https://api.github.com/repos/agrover/tcmu-runner/contents/{+path}","compare_url":"https://api.github.com/repos/agrover/tcmu-runner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agrover/tcmu-runner/merges","archive_url":"https://api.github.com/repos/agrover/tcmu-runner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agrover/tcmu-runner/downloads","issues_url":"https://api.github.com/repos/agrover/tcmu-runner/issues{/number}","pulls_url":"https://api.github.com/repos/agrover/tcmu-runner/pulls{/number}","milestones_url":"https://api.github.com/repos/agrover/tcmu-runner/milestones{/number}","notifications_url":"https://api.github.com/repos/agrover/tcmu-runner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agrover/tcmu-runner/labels{/name}","releases_url":"https://api.github.com/repos/agrover/tcmu-runner/releases{/id}","created_at":"2014-07-16T21:20:00Z","updated_at":"2015-12-09T07:10:24Z","pushed_at":"2016-01-11T22:57:00Z","git_url":"git://github.com/agrover/tcmu-runner.git","ssh_url":"git@github.com:agrover/tcmu-runner.git","clone_url":"https://github.com/agrover/tcmu-runner.git","svn_url":"https://github.com/agrover/tcmu-runner","homepage":null,"size":226,"stargazers_count":9,"watchers_count":9,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":9,"forks":11,"open_issues":9,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/agrover/tcmu-runner/pulls/29"},"html":{"href":"https://github.com/agrover/tcmu-runner/pull/29"},"issue":{"href":"https://api.github.com/repos/agrover/tcmu-runner/issues/29"},"comments":{"href":"https://api.github.com/repos/agrover/tcmu-runner/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/agrover/tcmu-runner/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/agrover/tcmu-runner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/agrover/tcmu-runner/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/agrover/tcmu-runner/statuses/f53cc97078feaccc2c075d71165f52d39ea90214"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"agrover","id":2305,"avatar_url":"https://avatars.githubusercontent.com/u/2305?v=3","gravatar_id":"","url":"https://api.github.com/users/agrover","html_url":"https://github.com/agrover","followers_url":"https://api.github.com/users/agrover/followers","following_url":"https://api.github.com/users/agrover/following{/other_user}","gists_url":"https://api.github.com/users/agrover/gists{/gist_id}","starred_url":"https://api.github.com/users/agrover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrover/subscriptions","organizations_url":"https://api.github.com/users/agrover/orgs","repos_url":"https://api.github.com/users/agrover/repos","events_url":"https://api.github.com/users/agrover/events{/privacy}","received_events_url":"https://api.github.com/users/agrover/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":14,"changed_files":1}}