{"action":"reopened","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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-16T11:09:20Z","updated_at":"2015-09-21T11:56:12Z","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"}}