{"action":"created","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/6958","repository_url":"https://api.github.com/repos/zfsonlinux/zfs","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/6958/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/6958/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/6958/events","html_url":"https://github.com/zfsonlinux/zfs/issues/6958","id":282169114,"number":6958,"title":"SEEK_DATA / SEEK_HOLE doesn't work on active files","user":{"login":"cwedgwood","id":157429,"avatar_url":"https://avatars2.githubusercontent.com/u/157429?v=4","gravatar_id":"","url":"https://api.github.com/users/cwedgwood","html_url":"https://github.com/cwedgwood","followers_url":"https://api.github.com/users/cwedgwood/followers","following_url":"https://api.github.com/users/cwedgwood/following{/other_user}","gists_url":"https://api.github.com/users/cwedgwood/gists{/gist_id}","starred_url":"https://api.github.com/users/cwedgwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwedgwood/subscriptions","organizations_url":"https://api.github.com/users/cwedgwood/orgs","repos_url":"https://api.github.com/users/cwedgwood/repos","events_url":"https://api.github.com/users/cwedgwood/events{/privacy}","received_events_url":"https://api.github.com/users/cwedgwood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-12-14T16:54:50Z","updated_at":"2017-12-15T17:58:58Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Type                                | Version/Name\r\n  ---                                  |     --- \r\nDistribution Name       | \r\nDistribution Version    | \r\nLinux Kernel                 | 4.14.x\r\nArchitecture                 | amd64\r\nZFS Version                  | ba88ef6bb\r\nSPL Version                  | ed19bcc\r\n\r\n### Describe the problem you're observing\r\n\r\nWhen using SEEK_DATA & SEEK_HOLE to map a file it works robustly if the file is not being updated (open elsewhere for write).\r\n\r\nWhen it is open elsewhere for write and being updated, it's common to get wrong results, often a single data segment from [0, len]\r\n\r\n### Describe how to reproduce the problem\r\n\r\nCreate a sparse file, verify SEEK_HOLE/SEEK_DATA are working... open the file for rw elsewhere and make updates...   check again\r\n"},"comment":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/comments/352071261","html_url":"https://github.com/zfsonlinux/zfs/issues/6958#issuecomment-352071261","issue_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/6958","id":352071261,"user":{"login":"ryao","id":1386373,"avatar_url":"https://avatars2.githubusercontent.com/u/1386373?v=4","gravatar_id":"","url":"https://api.github.com/users/ryao","html_url":"https://github.com/ryao","followers_url":"https://api.github.com/users/ryao/followers","following_url":"https://api.github.com/users/ryao/following{/other_user}","gists_url":"https://api.github.com/users/ryao/gists{/gist_id}","starred_url":"https://api.github.com/users/ryao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryao/subscriptions","organizations_url":"https://api.github.com/users/ryao/orgs","repos_url":"https://api.github.com/users/ryao/repos","events_url":"https://api.github.com/users/ryao/events{/privacy}","received_events_url":"https://api.github.com/users/ryao/received_events","type":"User","site_admin":false},"created_at":"2017-12-15T17:58:58Z","updated_at":"2017-12-15T17:58:58Z","author_association":"MEMBER","body":"This sounds like a consequence of the optimization that made it into 0.7 that improved performance by not waiting on the txg commit. It was not clear to me at the time how to avoid that while maintaining a correct view and it still isn't. :/"}}
{"actor":{"display_login":"ryao"}}