{"action":"created","issue":{"url":"https://api.github.com/repos/openzfsonosx/zfs/issues/436","labels_url":"https://api.github.com/repos/openzfsonosx/zfs/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/openzfsonosx/zfs/issues/436/comments","events_url":"https://api.github.com/repos/openzfsonosx/zfs/issues/436/events","html_url":"https://github.com/openzfsonosx/zfs/issues/436","id":119350908,"number":436,"title":"Incorrect free space reporting in Finder","user":{"login":"JMoVS","id":7354506,"avatar_url":"https://avatars.githubusercontent.com/u/7354506?v=3","gravatar_id":"","url":"https://api.github.com/users/JMoVS","html_url":"https://github.com/JMoVS","followers_url":"https://api.github.com/users/JMoVS/followers","following_url":"https://api.github.com/users/JMoVS/following{/other_user}","gists_url":"https://api.github.com/users/JMoVS/gists{/gist_id}","starred_url":"https://api.github.com/users/JMoVS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMoVS/subscriptions","organizations_url":"https://api.github.com/users/JMoVS/orgs","repos_url":"https://api.github.com/users/JMoVS/repos","events_url":"https://api.github.com/users/JMoVS/events{/privacy}","received_events_url":"https://api.github.com/users/JMoVS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-29T10:34:53Z","updated_at":"2015-11-29T15:34:24Z","closed_at":null,"body":"Using the Finder to copy data to a dataset decreases the free space shown in Finder for said dataset after successfull copy process by the correct amount.\r\nBut if it so happens that this dataset is on a pool and other datasets on the same pool are present, their free space won't get updated. Also, if one puts something in the trash and empties the trash, not even the dataset where the item initally was gets an update to it's reported free space.\r\n\r\nThis update can be triggered for all datasets mounted of a pool by unmounting any (really, any) dataset in the pool) or mounting it. This then refreshes the free space reported in Finder.\r\n\r\nzfs get all or zfs list always reports correct numbers, only the Finder app doesn't report correct values."},"comment":{"url":"https://api.github.com/repos/openzfsonosx/zfs/issues/comments/160422720","html_url":"https://github.com/openzfsonosx/zfs/issues/436#issuecomment-160422720","issue_url":"https://api.github.com/repos/openzfsonosx/zfs/issues/436","id":160422720,"user":{"login":"ilovezfs","id":5268928,"avatar_url":"https://avatars.githubusercontent.com/u/5268928?v=3","gravatar_id":"","url":"https://api.github.com/users/ilovezfs","html_url":"https://github.com/ilovezfs","followers_url":"https://api.github.com/users/ilovezfs/followers","following_url":"https://api.github.com/users/ilovezfs/following{/other_user}","gists_url":"https://api.github.com/users/ilovezfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ilovezfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilovezfs/subscriptions","organizations_url":"https://api.github.com/users/ilovezfs/orgs","repos_url":"https://api.github.com/users/ilovezfs/repos","events_url":"https://api.github.com/users/ilovezfs/events{/privacy}","received_events_url":"https://api.github.com/users/ilovezfs/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T15:34:24Z","updated_at":"2015-11-29T15:34:24Z","body":"Unmount/remount themselves are not related. It's most like the mkdir or rmdir of the mountpoint directory in the parent dataset that you're seeing trigger a refresh. You'll notice that if you move something else to the Trash after emptying the Trash that the Finder reported available space within that dataset and all datasets above it in the hierarchy will update, but datasets below or lateral to it in the hierarchy will not update.\r\n\r\nIn general, the Finder reported available space seems to update to what would have been the correct value before the given operation.\r\n\r\nMake a 1g file, a 2g file, a 4g file, an 8g file, and a 16g file. Removing the 2g file appears to free nothing according to Finder. Then remove the 16g file, Finder reports 2g freed up. Remove the 1g file, Finder then reports an additional 16g freed up. Remove the 4g file, Finder then reports an additional 1g freed up. Make an empty file, Finder reports an additional 1g freed up."}}