{"action":"created","comment":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/comments/39708121","id":39708121,"diff_hunk":"@@ -46,8 +52,13 @@ public FsPermission getPermission() {\n    * @see FsPermission#applyUMask(FsPermission)\n    */\n   public PermissionStatus applyUMask(FsPermission umask) {\n-    mPermission = mPermission.applyUMask(umask);\n-    return this;\n+    FsPermission newFsPermission = mPermission.applyUMask(umask);\n+    return new PermissionStatus(mUsername, mGroupname, newFsPermission);\n+  }\n+\n+  /** Get the Directory default PermissionStatus. */\n+  public static PermissionStatus getDirDefault() {\n+    return new PermissionStatus(\"\", \"\", new FsPermission((short)0755));","path":"common/src/main/java/tachyon/security/authorization/PermissionStatus.java","position":25,"original_position":25,"commit_id":"0eb0c5aa3b2197680079a3ecc6dda3c390c71310","original_commit_id":"9b61fbe3dd9b0ab0bf015766683f6bf95704cf63","user":{"login":"shenguoquan","id":6701903,"avatar_url":"https://avatars.githubusercontent.com/u/6701903?v=3","gravatar_id":"","url":"https://api.github.com/users/shenguoquan","html_url":"https://github.com/shenguoquan","followers_url":"https://api.github.com/users/shenguoquan/followers","following_url":"https://api.github.com/users/shenguoquan/following{/other_user}","gists_url":"https://api.github.com/users/shenguoquan/gists{/gist_id}","starred_url":"https://api.github.com/users/shenguoquan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shenguoquan/subscriptions","organizations_url":"https://api.github.com/users/shenguoquan/orgs","repos_url":"https://api.github.com/users/shenguoquan/repos","events_url":"https://api.github.com/users/shenguoquan/events{/privacy}","received_events_url":"https://api.github.com/users/shenguoquan/received_events","type":"User","site_admin":false},"body":"Hi @ooq , I use the constants configuration. I think it doesn't need to change it configurable. The default permission is the same as the Linux filesystem or HDFS system. ","created_at":"2015-09-17T03:04:00Z","updated_at":"2015-09-17T03:04:00Z","html_url":"https://github.com/amplab/tachyon/pull/1410#discussion_r39708121","pull_request_url":"https://api.github.com/repos/amplab/tachyon/pulls/1410","_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments/39708121"},"html":{"href":"https://github.com/amplab/tachyon/pull/1410#discussion_r39708121"},"pull_request":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1410"}}},"pull_request":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/1410","id":43588639,"html_url":"https://github.com/amplab/tachyon/pull/1410","diff_url":"https://github.com/amplab/tachyon/pull/1410.diff","patch_url":"https://github.com/amplab/tachyon/pull/1410.patch","issue_url":"https://api.github.com/repos/amplab/tachyon/issues/1410","number":1410,"state":"open","locked":false,"title":"[TACHYON-816] Integrate permission model into Inode structure","user":{"login":"shenguoquan","id":6701903,"avatar_url":"https://avatars.githubusercontent.com/u/6701903?v=3","gravatar_id":"","url":"https://api.github.com/users/shenguoquan","html_url":"https://github.com/shenguoquan","followers_url":"https://api.github.com/users/shenguoquan/followers","following_url":"https://api.github.com/users/shenguoquan/following{/other_user}","gists_url":"https://api.github.com/users/shenguoquan/gists{/gist_id}","starred_url":"https://api.github.com/users/shenguoquan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shenguoquan/subscriptions","organizations_url":"https://api.github.com/users/shenguoquan/orgs","repos_url":"https://api.github.com/users/shenguoquan/repos","events_url":"https://api.github.com/users/shenguoquan/events{/privacy}","received_events_url":"https://api.github.com/users/shenguoquan/received_events","type":"User","site_admin":false},"body":"https://tachyon.atlassian.net/browse/TACHYON-816\r\nTachyon is an inode based filesystem, an inode present a file or a directory. So the permission model is put in the inode structure. The Google doc(https://docs.google.com/document/d/1anFhvJpajX3EtZFatHQ9Yz3-PWh3Nv6OvcLrMjDID_Q) describes the permision in detail [section 3.1]","created_at":"2015-08-28T02:46:37Z","updated_at":"2015-09-17T03:04:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6353f7387a2b1a765634688b8f59bf1e370c938c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amplab/tachyon/pulls/1410/commits","review_comments_url":"https://api.github.com/repos/amplab/tachyon/pulls/1410/comments","review_comment_url":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amplab/tachyon/issues/1410/comments","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/0eb0c5aa3b2197680079a3ecc6dda3c390c71310","head":{"label":"shenguoquan:TACHYON-816","ref":"TACHYON-816","sha":"0eb0c5aa3b2197680079a3ecc6dda3c390c71310","user":{"login":"shenguoquan","id":6701903,"avatar_url":"https://avatars.githubusercontent.com/u/6701903?v=3","gravatar_id":"","url":"https://api.github.com/users/shenguoquan","html_url":"https://github.com/shenguoquan","followers_url":"https://api.github.com/users/shenguoquan/followers","following_url":"https://api.github.com/users/shenguoquan/following{/other_user}","gists_url":"https://api.github.com/users/shenguoquan/gists{/gist_id}","starred_url":"https://api.github.com/users/shenguoquan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shenguoquan/subscriptions","organizations_url":"https://api.github.com/users/shenguoquan/orgs","repos_url":"https://api.github.com/users/shenguoquan/repos","events_url":"https://api.github.com/users/shenguoquan/events{/privacy}","received_events_url":"https://api.github.com/users/shenguoquan/received_events","type":"User","site_admin":false},"repo":{"id":32506158,"name":"tachyon","full_name":"shenguoquan/tachyon","owner":{"login":"shenguoquan","id":6701903,"avatar_url":"https://avatars.githubusercontent.com/u/6701903?v=3","gravatar_id":"","url":"https://api.github.com/users/shenguoquan","html_url":"https://github.com/shenguoquan","followers_url":"https://api.github.com/users/shenguoquan/followers","following_url":"https://api.github.com/users/shenguoquan/following{/other_user}","gists_url":"https://api.github.com/users/shenguoquan/gists{/gist_id}","starred_url":"https://api.github.com/users/shenguoquan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shenguoquan/subscriptions","organizations_url":"https://api.github.com/users/shenguoquan/orgs","repos_url":"https://api.github.com/users/shenguoquan/repos","events_url":"https://api.github.com/users/shenguoquan/events{/privacy}","received_events_url":"https://api.github.com/users/shenguoquan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shenguoquan/tachyon","description":" A Reliable Memory Centric Distributed Storage System","fork":true,"url":"https://api.github.com/repos/shenguoquan/tachyon","forks_url":"https://api.github.com/repos/shenguoquan/tachyon/forks","keys_url":"https://api.github.com/repos/shenguoquan/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shenguoquan/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shenguoquan/tachyon/teams","hooks_url":"https://api.github.com/repos/shenguoquan/tachyon/hooks","issue_events_url":"https://api.github.com/repos/shenguoquan/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/shenguoquan/tachyon/events","assignees_url":"https://api.github.com/repos/shenguoquan/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/shenguoquan/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/shenguoquan/tachyon/tags","blobs_url":"https://api.github.com/repos/shenguoquan/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shenguoquan/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shenguoquan/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/shenguoquan/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shenguoquan/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/shenguoquan/tachyon/languages","stargazers_url":"https://api.github.com/repos/shenguoquan/tachyon/stargazers","contributors_url":"https://api.github.com/repos/shenguoquan/tachyon/contributors","subscribers_url":"https://api.github.com/repos/shenguoquan/tachyon/subscribers","subscription_url":"https://api.github.com/repos/shenguoquan/tachyon/subscription","commits_url":"https://api.github.com/repos/shenguoquan/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/shenguoquan/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/shenguoquan/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/shenguoquan/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/shenguoquan/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/shenguoquan/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shenguoquan/tachyon/merges","archive_url":"https://api.github.com/repos/shenguoquan/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shenguoquan/tachyon/downloads","issues_url":"https://api.github.com/repos/shenguoquan/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/shenguoquan/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/shenguoquan/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/shenguoquan/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shenguoquan/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/shenguoquan/tachyon/releases{/id}","created_at":"2015-03-19T07:06:25Z","updated_at":"2015-03-19T07:06:28Z","pushed_at":"2015-09-17T03:02:33Z","git_url":"git://github.com/shenguoquan/tachyon.git","ssh_url":"git@github.com:shenguoquan/tachyon.git","clone_url":"https://github.com/shenguoquan/tachyon.git","svn_url":"https://github.com/shenguoquan/tachyon","homepage":"http://tachyon-project.org","size":20889,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"amplab:authorization","ref":"authorization","sha":"d357b83696b6ac8a5e37a7d69fe2e8bd76c58e46","user":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"repo":{"id":7276954,"name":"tachyon","full_name":"amplab/tachyon","owner":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amplab/tachyon","description":"Memory Centric Reliable Distributed Storage","fork":false,"url":"https://api.github.com/repos/amplab/tachyon","forks_url":"https://api.github.com/repos/amplab/tachyon/forks","keys_url":"https://api.github.com/repos/amplab/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amplab/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amplab/tachyon/teams","hooks_url":"https://api.github.com/repos/amplab/tachyon/hooks","issue_events_url":"https://api.github.com/repos/amplab/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/amplab/tachyon/events","assignees_url":"https://api.github.com/repos/amplab/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/amplab/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/amplab/tachyon/tags","blobs_url":"https://api.github.com/repos/amplab/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amplab/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amplab/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/amplab/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/amplab/tachyon/languages","stargazers_url":"https://api.github.com/repos/amplab/tachyon/stargazers","contributors_url":"https://api.github.com/repos/amplab/tachyon/contributors","subscribers_url":"https://api.github.com/repos/amplab/tachyon/subscribers","subscription_url":"https://api.github.com/repos/amplab/tachyon/subscription","commits_url":"https://api.github.com/repos/amplab/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/amplab/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/amplab/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/amplab/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/amplab/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/amplab/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amplab/tachyon/merges","archive_url":"https://api.github.com/repos/amplab/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amplab/tachyon/downloads","issues_url":"https://api.github.com/repos/amplab/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/amplab/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/amplab/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/amplab/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amplab/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/amplab/tachyon/releases{/id}","created_at":"2012-12-21T17:43:46Z","updated_at":"2015-09-17T02:40:44Z","pushed_at":"2015-09-17T03:02:34Z","git_url":"git://github.com/amplab/tachyon.git","ssh_url":"git@github.com:amplab/tachyon.git","clone_url":"https://github.com/amplab/tachyon.git","svn_url":"https://github.com/amplab/tachyon","homepage":"http://tachyon-project.org","size":48277,"stargazers_count":1574,"watchers_count":1574,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":616,"mirror_url":null,"open_issues_count":34,"forks":616,"open_issues":34,"watchers":1574,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1410"},"html":{"href":"https://github.com/amplab/tachyon/pull/1410"},"issue":{"href":"https://api.github.com/repos/amplab/tachyon/issues/1410"},"comments":{"href":"https://api.github.com/repos/amplab/tachyon/issues/1410/comments"},"review_comments":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1410/comments"},"review_comment":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1410/commits"},"statuses":{"href":"https://api.github.com/repos/amplab/tachyon/statuses/0eb0c5aa3b2197680079a3ecc6dda3c390c71310"}}}}