{"action":"closed","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/2057","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/2057/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/2057/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/2057/events","html_url":"https://github.com/syncthing/syncthing/issues/2057","id":94631078,"number":2057,"title":"enhancement: Stop sync when free disk space reaches a minimum level","user":{"login":"hungrywolf27","id":8271455,"avatar_url":"https://avatars.githubusercontent.com/u/8271455?v=3","gravatar_id":"","url":"https://api.github.com/users/hungrywolf27","html_url":"https://github.com/hungrywolf27","followers_url":"https://api.github.com/users/hungrywolf27/followers","following_url":"https://api.github.com/users/hungrywolf27/following{/other_user}","gists_url":"https://api.github.com/users/hungrywolf27/gists{/gist_id}","starred_url":"https://api.github.com/users/hungrywolf27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungrywolf27/subscriptions","organizations_url":"https://api.github.com/users/hungrywolf27/orgs","repos_url":"https://api.github.com/users/hungrywolf27/repos","events_url":"https://api.github.com/users/hungrywolf27/events{/privacy}","received_events_url":"https://api.github.com/users/hungrywolf27/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/syncthing/syncthing/labels/enhancement","name":"enhancement","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"Zillode","id":14169,"avatar_url":"https://avatars.githubusercontent.com/u/14169?v=3","gravatar_id":"","url":"https://api.github.com/users/Zillode","html_url":"https://github.com/Zillode","followers_url":"https://api.github.com/users/Zillode/followers","following_url":"https://api.github.com/users/Zillode/following{/other_user}","gists_url":"https://api.github.com/users/Zillode/gists{/gist_id}","starred_url":"https://api.github.com/users/Zillode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zillode/subscriptions","organizations_url":"https://api.github.com/users/Zillode/orgs","repos_url":"https://api.github.com/users/Zillode/repos","events_url":"https://api.github.com/users/Zillode/events{/privacy}","received_events_url":"https://api.github.com/users/Zillode/received_events","type":"User","site_admin":false},"milestone":null,"comments":21,"created_at":"2015-07-13T03:40:35Z","updated_at":"2015-08-09T08:39:39Z","closed_at":"2015-08-09T08:39:39Z","body":"Feature request:\r\nInstead of continuing to sync files until a device runs out of space and file creation fails, have an option to stop syncing the folder and show an error when the free disk space reaches a user-defined threshold (e.g. 2 Gib).\r\n\r\nKnowing a folder's Global State and the amount of files Out of Sync on the local system, it would be possible for Syncthing to tell when a complete sync is going to exceed available space, and warn the user in advance. This would avoid worse problems caused when disk space reaches zero.\r\n\r\n(Now I see @Zillode 's comment in #1790 that there is no golang library for getting free disk space. Any news or other thoughts on that matter?) \r\n\r\nClosed issues related to out-of-space errors: \r\nhttps://github.com/syncthing/syncthing/issues/302\r\nhttps://github.com/syncthing/syncthing/issues/1790"}}