{"action":"created","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3789","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3789/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3789/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3789/events","html_url":"https://github.com/zfsonlinux/zfs/issues/3789","id":106751238,"number":3789,"title":"zfs send - quota bug - userused underflow","user":{"login":"mw171","id":3987605,"avatar_url":"https://avatars.githubusercontent.com/u/3987605?v=3","gravatar_id":"","url":"https://api.github.com/users/mw171","html_url":"https://github.com/mw171","followers_url":"https://api.github.com/users/mw171/followers","following_url":"https://api.github.com/users/mw171/following{/other_user}","gists_url":"https://api.github.com/users/mw171/gists{/gist_id}","starred_url":"https://api.github.com/users/mw171/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mw171/subscriptions","organizations_url":"https://api.github.com/users/mw171/orgs","repos_url":"https://api.github.com/users/mw171/repos","events_url":"https://api.github.com/users/mw171/events{/privacy}","received_events_url":"https://api.github.com/users/mw171/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zfsonlinux/zfs/labels/Bug%20-%20Major","name":"Bug - Major","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/zfsonlinux/zfs/milestones/11","html_url":"https://github.com/zfsonlinux/zfs/milestones/0.7.0","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/milestones/11/labels","id":7013,"number":11,"title":"0.7.0","description":"ZFS on Linux v0.7.0 - Memory management\r\n\r\n","creator":{"login":"behlendorf","id":148917,"avatar_url":"https://avatars.githubusercontent.com/u/148917?v=3","gravatar_id":"","url":"https://api.github.com/users/behlendorf","html_url":"https://github.com/behlendorf","followers_url":"https://api.github.com/users/behlendorf/followers","following_url":"https://api.github.com/users/behlendorf/following{/other_user}","gists_url":"https://api.github.com/users/behlendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/behlendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behlendorf/subscriptions","organizations_url":"https://api.github.com/users/behlendorf/orgs","repos_url":"https://api.github.com/users/behlendorf/repos","events_url":"https://api.github.com/users/behlendorf/events{/privacy}","received_events_url":"https://api.github.com/users/behlendorf/received_events","type":"User","site_admin":false},"open_issues":170,"closed_issues":125,"state":"open","created_at":"2011-05-03T17:38:46Z","updated_at":"2015-10-26T22:25:12Z","due_on":null,"closed_at":null},"comments":36,"created_at":"2015-09-16T11:09:20Z","updated_at":"2015-10-28T17:15:37Z","closed_at":null,"body":"hi,\r\n\r\nthere seems to be a bug in the userused computation under 0.6.5:\r\n\r\n```\r\n# dd if=/dev/zero of=/tmp/a bs=1024k seek=1023 count=1\r\n1+0 records in\r\n1+0 records out\r\n1048576 bytes (1.0 MB) copied, 0.00228316 s, 459 MB/s\r\n# dd if=/dev/zero of=/tmp/b bs=1024k seek=1023 count=1\r\n1+0 records in\r\n1+0 records out\r\n1048576 bytes (1.0 MB) copied, 0.00203765 s, 515 MB/s\r\n# \r\n# zpool create a /tmp/a\r\n# zpool create b /tmp/b\r\n# \r\n# date > /a/x\r\n# \r\n# zfs snapshot a@1\r\n# zfs send a@1 | zfs recv -F b\r\n# \r\n# rm /b/x\r\n# zfs userquota@root=1M b\r\n# sync\r\n# zfs userspace b\r\nTYPE        NAME   USED  QUOTA\r\nPOSIX User  root  16.0E     1M\r\n# \r\n# date > /b/x\r\n-bash: /b/x: Disk quota exceeded\r\n# \r\n```\r\n\r\nRegards,\r\nMartin\r\n"},"comment":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/comments/151914205","html_url":"https://github.com/zfsonlinux/zfs/issues/3789#issuecomment-151914205","issue_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3789","id":151914205,"user":{"login":"mw171","id":3987605,"avatar_url":"https://avatars.githubusercontent.com/u/3987605?v=3","gravatar_id":"","url":"https://api.github.com/users/mw171","html_url":"https://github.com/mw171","followers_url":"https://api.github.com/users/mw171/followers","following_url":"https://api.github.com/users/mw171/following{/other_user}","gists_url":"https://api.github.com/users/mw171/gists{/gist_id}","starred_url":"https://api.github.com/users/mw171/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mw171/subscriptions","organizations_url":"https://api.github.com/users/mw171/orgs","repos_url":"https://api.github.com/users/mw171/repos","events_url":"https://api.github.com/users/mw171/events{/privacy}","received_events_url":"https://api.github.com/users/mw171/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T17:15:37Z","updated_at":"2015-10-28T17:15:37Z","body":"@scsiguy  yes, but only with an already infected zfs:\r\n```\r\n# zfs userspace b\r\nTYPE        NAME   USED  QUOTA\r\nPOSIX User  root  16.0E   none\r\n# ps -ef >/b/x\r\n# zfs userspace b\r\nTYPE        NAME   USED  QUOTA\r\nPOSIX User  root  73.5K   none\r\n# rm /b/x\r\n# zfs userspace b\r\nTYPE        NAME   USED  QUOTA\r\nPOSIX User  root  16.0E   none\r\n# modinfo zfs | grep '^version'\r\nversion:        0.6.5-29_gb23d543\r\n# \r\n```"}}