{"action":"opened","number":237,"pull_request":{"url":"https://api.github.com/repos/hanwen/go-fuse/pulls/237","id":220478664,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNDc4NjY0","html_url":"https://github.com/hanwen/go-fuse/pull/237","diff_url":"https://github.com/hanwen/go-fuse/pull/237.diff","patch_url":"https://github.com/hanwen/go-fuse/pull/237.patch","issue_url":"https://api.github.com/repos/hanwen/go-fuse/issues/237","number":237,"state":"open","locked":false,"title":"Add support for store notify","user":{"login":"navytux","id":1794248,"node_id":"MDQ6VXNlcjE3OTQyNDg=","avatar_url":"https://avatars1.githubusercontent.com/u/1794248?v=4","gravatar_id":"","url":"https://api.github.com/users/navytux","html_url":"https://github.com/navytux","followers_url":"https://api.github.com/users/navytux/followers","following_url":"https://api.github.com/users/navytux/following{/other_user}","gists_url":"https://api.github.com/users/navytux/gists{/gist_id}","starred_url":"https://api.github.com/users/navytux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navytux/subscriptions","organizations_url":"https://api.github.com/users/navytux/orgs","repos_url":"https://api.github.com/users/navytux/repos","events_url":"https://api.github.com/users/navytux/events{/privacy}","received_events_url":"https://api.github.com/users/navytux/received_events","type":"User","site_admin":false},"body":"I'm writing a networked filesystem which reads data in 2MB blocks from\r\nremote database. However read requests from the kernel come in much\r\nsmaller sizes - for example 4K-128K.\r\n\r\nSince it would be very slow to refetch the 2MB block for e.g. every\r\nconsecutive 4K reads, a cache for fetched data is needed. A custom cache\r\nwould do, however since the kernel already implements pagecache to cache\r\nfile data, it is logical to use it directly.\r\n\r\nFUSE protocol provides primitives for pagecache control. We already have\r\nsupport for e.g. invalidating a data region for inode (InodeNotify), but\r\nthere is more there. In particular it is possible to store and\r\nretrieve data into/from the kernel cache with \"store notify\" and\r\n\"retrieve notify\" messages:\r\n\r\nhttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/fuse.h?id=v4.19-rc6-177-gcec4de302c5f#n68\r\nhttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/fuse.h?id=v4.19-rc6-177-gcec4de302c5f#n756\r\n\r\nhttps://git.kernel.org/linus/a1d75f2582\r\nhttps://git.kernel.org/linus/2d45ba381a\r\n\r\nThis patch adds support for \"store notify\". Adding support for \"retrieve\r\nnotify\" might be added later since a) it is not needed right now, and b)\r\nsupporting it is a bit more work since the kernel sends a separate reply\r\nwith data and infrastructure has to be added to glue it back to original\r\n\"retrieve notify\" server-originated request.\r\n\r\nFor user-visible API I decided not to duplicate FUSE-protocol naming\r\n1-1 and to be more explicit in names - emphasizing it is about cache\r\ncontrol - it is e.g. InodeNotifyStoreCache instead of\r\nInodeNotifyStore, and for retrieving it (hopefully) should be just\r\nInodeRetrieveCache instead of InodeNotifyRetrieveCache and a\r\nseparate callback.\r\n\r\nThanks beforehand,\r\nKirill","created_at":"2018-10-04T18:44:04Z","updated_at":"2018-10-04T18:44:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hanwen/go-fuse/pulls/237/commits","review_comments_url":"https://api.github.com/repos/hanwen/go-fuse/pulls/237/comments","review_comment_url":"https://api.github.com/repos/hanwen/go-fuse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hanwen/go-fuse/issues/237/comments","statuses_url":"https://api.github.com/repos/hanwen/go-fuse/statuses/59c0138bba28647148b869a14169f703ea59540d","head":{"label":"navytux:y/storecache","ref":"y/storecache","sha":"59c0138bba28647148b869a14169f703ea59540d","user":{"login":"navytux","id":1794248,"node_id":"MDQ6VXNlcjE3OTQyNDg=","avatar_url":"https://avatars1.githubusercontent.com/u/1794248?v=4","gravatar_id":"","url":"https://api.github.com/users/navytux","html_url":"https://github.com/navytux","followers_url":"https://api.github.com/users/navytux/followers","following_url":"https://api.github.com/users/navytux/following{/other_user}","gists_url":"https://api.github.com/users/navytux/gists{/gist_id}","starred_url":"https://api.github.com/users/navytux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navytux/subscriptions","organizations_url":"https://api.github.com/users/navytux/orgs","repos_url":"https://api.github.com/users/navytux/repos","events_url":"https://api.github.com/users/navytux/events{/privacy}","received_events_url":"https://api.github.com/users/navytux/received_events","type":"User","site_admin":false},"repo":{"id":151058472,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEwNTg0NzI=","name":"go-fuse","full_name":"navytux/go-fuse","private":false,"owner":{"login":"navytux","id":1794248,"node_id":"MDQ6VXNlcjE3OTQyNDg=","avatar_url":"https://avatars1.githubusercontent.com/u/1794248?v=4","gravatar_id":"","url":"https://api.github.com/users/navytux","html_url":"https://github.com/navytux","followers_url":"https://api.github.com/users/navytux/followers","following_url":"https://api.github.com/users/navytux/following{/other_user}","gists_url":"https://api.github.com/users/navytux/gists{/gist_id}","starred_url":"https://api.github.com/users/navytux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navytux/subscriptions","organizations_url":"https://api.github.com/users/navytux/orgs","repos_url":"https://api.github.com/users/navytux/repos","events_url":"https://api.github.com/users/navytux/events{/privacy}","received_events_url":"https://api.github.com/users/navytux/received_events","type":"User","site_admin":false},"html_url":"https://github.com/navytux/go-fuse","description":"kirr's go-fuse tree","fork":true,"url":"https://api.github.com/repos/navytux/go-fuse","forks_url":"https://api.github.com/repos/navytux/go-fuse/forks","keys_url":"https://api.github.com/repos/navytux/go-fuse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/navytux/go-fuse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/navytux/go-fuse/teams","hooks_url":"https://api.github.com/repos/navytux/go-fuse/hooks","issue_events_url":"https://api.github.com/repos/navytux/go-fuse/issues/events{/number}","events_url":"https://api.github.com/repos/navytux/go-fuse/events","assignees_url":"https://api.github.com/repos/navytux/go-fuse/assignees{/user}","branches_url":"https://api.github.com/repos/navytux/go-fuse/branches{/branch}","tags_url":"https://api.github.com/repos/navytux/go-fuse/tags","blobs_url":"https://api.github.com/repos/navytux/go-fuse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/navytux/go-fuse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/navytux/go-fuse/git/refs{/sha}","trees_url":"https://api.github.com/repos/navytux/go-fuse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/navytux/go-fuse/statuses/{sha}","languages_url":"https://api.github.com/repos/navytux/go-fuse/languages","stargazers_url":"https://api.github.com/repos/navytux/go-fuse/stargazers","contributors_url":"https://api.github.com/repos/navytux/go-fuse/contributors","subscribers_url":"https://api.github.com/repos/navytux/go-fuse/subscribers","subscription_url":"https://api.github.com/repos/navytux/go-fuse/subscription","commits_url":"https://api.github.com/repos/navytux/go-fuse/commits{/sha}","git_commits_url":"https://api.github.com/repos/navytux/go-fuse/git/commits{/sha}","comments_url":"https://api.github.com/repos/navytux/go-fuse/comments{/number}","issue_comment_url":"https://api.github.com/repos/navytux/go-fuse/issues/comments{/number}","contents_url":"https://api.github.com/repos/navytux/go-fuse/contents/{+path}","compare_url":"https://api.github.com/repos/navytux/go-fuse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/navytux/go-fuse/merges","archive_url":"https://api.github.com/repos/navytux/go-fuse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/navytux/go-fuse/downloads","issues_url":"https://api.github.com/repos/navytux/go-fuse/issues{/number}","pulls_url":"https://api.github.com/repos/navytux/go-fuse/pulls{/number}","milestones_url":"https://api.github.com/repos/navytux/go-fuse/milestones{/number}","notifications_url":"https://api.github.com/repos/navytux/go-fuse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/navytux/go-fuse/labels{/name}","releases_url":"https://api.github.com/repos/navytux/go-fuse/releases{/id}","deployments_url":"https://api.github.com/repos/navytux/go-fuse/deployments","created_at":"2018-10-01T08:35:43Z","updated_at":"2018-10-02T07:20:18Z","pushed_at":"2018-10-04T18:43:41Z","git_url":"git://github.com/navytux/go-fuse.git","ssh_url":"git@github.com:navytux/go-fuse.git","clone_url":"https://github.com/navytux/go-fuse.git","svn_url":"https://github.com/navytux/go-fuse","homepage":"https://lab.nexedi.com/kirr/go-fuse","size":3154,"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":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hanwen:master","ref":"master","sha":"8ccb625b0adca1b17d16a21baf519c7837c82271","user":{"login":"hanwen","id":31547,"node_id":"MDQ6VXNlcjMxNTQ3","avatar_url":"https://avatars0.githubusercontent.com/u/31547?v=4","gravatar_id":"","url":"https://api.github.com/users/hanwen","html_url":"https://github.com/hanwen","followers_url":"https://api.github.com/users/hanwen/followers","following_url":"https://api.github.com/users/hanwen/following{/other_user}","gists_url":"https://api.github.com/users/hanwen/gists{/gist_id}","starred_url":"https://api.github.com/users/hanwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanwen/subscriptions","organizations_url":"https://api.github.com/users/hanwen/orgs","repos_url":"https://api.github.com/users/hanwen/repos","events_url":"https://api.github.com/users/hanwen/events{/privacy}","received_events_url":"https://api.github.com/users/hanwen/received_events","type":"User","site_admin":false},"repo":{"id":1201108,"node_id":"MDEwOlJlcG9zaXRvcnkxMjAxMTA4","name":"go-fuse","full_name":"hanwen/go-fuse","private":false,"owner":{"login":"hanwen","id":31547,"node_id":"MDQ6VXNlcjMxNTQ3","avatar_url":"https://avatars0.githubusercontent.com/u/31547?v=4","gravatar_id":"","url":"https://api.github.com/users/hanwen","html_url":"https://github.com/hanwen","followers_url":"https://api.github.com/users/hanwen/followers","following_url":"https://api.github.com/users/hanwen/following{/other_user}","gists_url":"https://api.github.com/users/hanwen/gists{/gist_id}","starred_url":"https://api.github.com/users/hanwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanwen/subscriptions","organizations_url":"https://api.github.com/users/hanwen/orgs","repos_url":"https://api.github.com/users/hanwen/repos","events_url":"https://api.github.com/users/hanwen/events{/privacy}","received_events_url":"https://api.github.com/users/hanwen/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hanwen/go-fuse","description":"FUSE bindings for Go","fork":false,"url":"https://api.github.com/repos/hanwen/go-fuse","forks_url":"https://api.github.com/repos/hanwen/go-fuse/forks","keys_url":"https://api.github.com/repos/hanwen/go-fuse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hanwen/go-fuse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hanwen/go-fuse/teams","hooks_url":"https://api.github.com/repos/hanwen/go-fuse/hooks","issue_events_url":"https://api.github.com/repos/hanwen/go-fuse/issues/events{/number}","events_url":"https://api.github.com/repos/hanwen/go-fuse/events","assignees_url":"https://api.github.com/repos/hanwen/go-fuse/assignees{/user}","branches_url":"https://api.github.com/repos/hanwen/go-fuse/branches{/branch}","tags_url":"https://api.github.com/repos/hanwen/go-fuse/tags","blobs_url":"https://api.github.com/repos/hanwen/go-fuse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hanwen/go-fuse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hanwen/go-fuse/git/refs{/sha}","trees_url":"https://api.github.com/repos/hanwen/go-fuse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hanwen/go-fuse/statuses/{sha}","languages_url":"https://api.github.com/repos/hanwen/go-fuse/languages","stargazers_url":"https://api.github.com/repos/hanwen/go-fuse/stargazers","contributors_url":"https://api.github.com/repos/hanwen/go-fuse/contributors","subscribers_url":"https://api.github.com/repos/hanwen/go-fuse/subscribers","subscription_url":"https://api.github.com/repos/hanwen/go-fuse/subscription","commits_url":"https://api.github.com/repos/hanwen/go-fuse/commits{/sha}","git_commits_url":"https://api.github.com/repos/hanwen/go-fuse/git/commits{/sha}","comments_url":"https://api.github.com/repos/hanwen/go-fuse/comments{/number}","issue_comment_url":"https://api.github.com/repos/hanwen/go-fuse/issues/comments{/number}","contents_url":"https://api.github.com/repos/hanwen/go-fuse/contents/{+path}","compare_url":"https://api.github.com/repos/hanwen/go-fuse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hanwen/go-fuse/merges","archive_url":"https://api.github.com/repos/hanwen/go-fuse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hanwen/go-fuse/downloads","issues_url":"https://api.github.com/repos/hanwen/go-fuse/issues{/number}","pulls_url":"https://api.github.com/repos/hanwen/go-fuse/pulls{/number}","milestones_url":"https://api.github.com/repos/hanwen/go-fuse/milestones{/number}","notifications_url":"https://api.github.com/repos/hanwen/go-fuse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hanwen/go-fuse/labels{/name}","releases_url":"https://api.github.com/repos/hanwen/go-fuse/releases{/id}","deployments_url":"https://api.github.com/repos/hanwen/go-fuse/deployments","created_at":"2010-12-27T18:49:26Z","updated_at":"2018-10-01T11:34:50Z","pushed_at":"2018-10-02T07:20:41Z","git_url":"git://github.com/hanwen/go-fuse.git","ssh_url":"git@github.com:hanwen/go-fuse.git","clone_url":"https://github.com/hanwen/go-fuse.git","svn_url":"https://github.com/hanwen/go-fuse","homepage":"","size":3209,"stargazers_count":804,"watchers_count":804,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":137,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":137,"open_issues":29,"watchers":804,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hanwen/go-fuse/pulls/237"},"html":{"href":"https://github.com/hanwen/go-fuse/pull/237"},"issue":{"href":"https://api.github.com/repos/hanwen/go-fuse/issues/237"},"comments":{"href":"https://api.github.com/repos/hanwen/go-fuse/issues/237/comments"},"review_comments":{"href":"https://api.github.com/repos/hanwen/go-fuse/pulls/237/comments"},"review_comment":{"href":"https://api.github.com/repos/hanwen/go-fuse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hanwen/go-fuse/pulls/237/commits"},"statuses":{"href":"https://api.github.com/repos/hanwen/go-fuse/statuses/59c0138bba28647148b869a14169f703ea59540d"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":240,"deletions":3,"changed_files":6}}
{"actor":{"display_login":"navytux"}}