{"action":"opened","issue":{"url":"https://api.github.com/repos/bluebore/bfs/issues/345","repository_url":"https://api.github.com/repos/bluebore/bfs","labels_url":"https://api.github.com/repos/bluebore/bfs/issues/345/labels{/name}","comments_url":"https://api.github.com/repos/bluebore/bfs/issues/345/comments","events_url":"https://api.github.com/repos/bluebore/bfs/issues/345/events","html_url":"https://github.com/bluebore/bfs/issues/345","id":163787887,"number":345,"title":"持久化block存储路径","user":{"login":"lylei","id":2767333,"avatar_url":"https://avatars.githubusercontent.com/u/2767333?v=3","gravatar_id":"","url":"https://api.github.com/users/lylei","html_url":"https://github.com/lylei","followers_url":"https://api.github.com/users/lylei/followers","following_url":"https://api.github.com/users/lylei/following{/other_user}","gists_url":"https://api.github.com/users/lylei/gists{/gist_id}","starred_url":"https://api.github.com/users/lylei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lylei/subscriptions","organizations_url":"https://api.github.com/users/lylei/orgs","repos_url":"https://api.github.com/users/lylei/repos","events_url":"https://api.github.com/users/lylei/events{/privacy}","received_events_url":"https://api.github.com/users/lylei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-05T07:31:11Z","updated_at":"2016-07-05T07:31:11Z","closed_at":null,"body":"对每个block存储其路径前缀，如/data/0000/000000这个block，在其元信息中存储/data，其余部分仍按原来的取模计算出来\r\n之所以这样，是因为：\r\n1）路径前缀一般不会太大，按每个block10个字节来算，不算压缩，1kw个block也仅占100MB空间\r\n2）如果不存前缀，而在cs中统一存储上一次的路径配置，每次启动时跟当前作比较，则需要大量的move操作，比如第一次配置了5块盘，然后重启，变为4块盘，虽然可以把之前4块盘中的block找到，但是部分磁盘中的block则需要move到其它盘， 类似重哈希，感觉代价略大"}}
{"actor":{"display_login":"lylei"}}