{"action":"created","issue":{"url":"https://api.github.com/repos/resin-io/etcher/issues/638","repository_url":"https://api.github.com/repos/resin-io/etcher","labels_url":"https://api.github.com/repos/resin-io/etcher/issues/638/labels{/name}","comments_url":"https://api.github.com/repos/resin-io/etcher/issues/638/comments","events_url":"https://api.github.com/repos/resin-io/etcher/issues/638/events","html_url":"https://github.com/resin-io/etcher/issues/638","id":172170221,"number":638,"title":".gz doesn't return correct file size for content above 2^32 B = 4 GB","user":{"login":"imrehg","id":38863,"avatar_url":"https://avatars.githubusercontent.com/u/38863?v=3","gravatar_id":"","url":"https://api.github.com/users/imrehg","html_url":"https://github.com/imrehg","followers_url":"https://api.github.com/users/imrehg/followers","following_url":"https://api.github.com/users/imrehg/following{/other_user}","gists_url":"https://api.github.com/users/imrehg/gists{/gist_id}","starred_url":"https://api.github.com/users/imrehg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imrehg/subscriptions","organizations_url":"https://api.github.com/users/imrehg/orgs","repos_url":"https://api.github.com/users/imrehg/repos","events_url":"https://api.github.com/users/imrehg/events{/privacy}","received_events_url":"https://api.github.com/users/imrehg/received_events","type":"User","site_admin":false},"labels":[{"id":288533350,"url":"https://api.github.com/repos/resin-io/etcher/labels/platform:all","name":"platform:all","color":"fbca04","default":false},{"id":288555185,"url":"https://api.github.com/repos/resin-io/etcher/labels/type:bug","name":"type:bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/resin-io/etcher/milestones/2","html_url":"https://github.com/resin-io/etcher/milestones/v1.0","labels_url":"https://api.github.com/repos/resin-io/etcher/milestones/2/labels","id":1717237,"number":2,"title":"v1.0","description":"Foundations of the desktop application.","creator":{"login":"jviotti","id":2192773,"avatar_url":"https://avatars.githubusercontent.com/u/2192773?v=3","gravatar_id":"","url":"https://api.github.com/users/jviotti","html_url":"https://github.com/jviotti","followers_url":"https://api.github.com/users/jviotti/followers","following_url":"https://api.github.com/users/jviotti/following{/other_user}","gists_url":"https://api.github.com/users/jviotti/gists{/gist_id}","starred_url":"https://api.github.com/users/jviotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jviotti/subscriptions","organizations_url":"https://api.github.com/users/jviotti/orgs","repos_url":"https://api.github.com/users/jviotti/repos","events_url":"https://api.github.com/users/jviotti/events{/privacy}","received_events_url":"https://api.github.com/users/jviotti/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":4,"state":"open","created_at":"2016-04-19T15:21:23Z","updated_at":"2016-11-30T22:27:03Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2016-08-19T16:31:24Z","updated_at":"2016-12-02T17:13:02Z","closed_at":null,"body":"- 1.0.0-beta13\n- Linux 64bit\n\nTaking it out from #629, apparently the gzip file format cannot accurately return the size of\n files above 4GB (2^32 bytes), but returns the modulo.\n\nLooks like on the command line people recommended something like `zcat file.gz | wc -c` or `gzip -dc file | wc -c` which give the correct value - though then decompresses the the file twice. Might have to do that for gzip in the end, though, since likely >4GB files are common for Etcher's use case.\n\nThis might let images to start to be burned onto cards that are too small (in worst case), or affects the progress bar.\n\nFrom testing with a 4100MiB > 4096MiB image, indeed `.gz` version lets to select a 512MB SD card, while the same file's `.xz` archive does not.\nFor the progress bar, the MB/s reading seems to be affected (shows very low speed, eg. 0.01MB/s)  but the progress percentage does not (shows correctly for the burning process), so it's not too bad. \n"},"comment":{"url":"https://api.github.com/repos/resin-io/etcher/issues/comments/264507736","html_url":"https://github.com/resin-io/etcher/issues/638#issuecomment-264507736","issue_url":"https://api.github.com/repos/resin-io/etcher/issues/638","id":264507736,"user":{"login":"WasabiFan","id":3310349,"avatar_url":"https://avatars.githubusercontent.com/u/3310349?v=3","gravatar_id":"","url":"https://api.github.com/users/WasabiFan","html_url":"https://github.com/WasabiFan","followers_url":"https://api.github.com/users/WasabiFan/followers","following_url":"https://api.github.com/users/WasabiFan/following{/other_user}","gists_url":"https://api.github.com/users/WasabiFan/gists{/gist_id}","starred_url":"https://api.github.com/users/WasabiFan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WasabiFan/subscriptions","organizations_url":"https://api.github.com/users/WasabiFan/orgs","repos_url":"https://api.github.com/users/WasabiFan/repos","events_url":"https://api.github.com/users/WasabiFan/events{/privacy}","received_events_url":"https://api.github.com/users/WasabiFan/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T17:13:02Z","updated_at":"2016-12-02T17:13:02Z","body":"> I can never remember which way around they are :-/\r\n\r\nThe simple way to remember it is to compare it to metric measurements. If it has an SI prefix like metric units do, you know it's a power of ten (as with metric).\r\n\r\n> And as Etcher is aimed at novices, I expect they might get confused if we started reporting everything in  GiB  instead of just GB?\r\n\r\nAs I see it, if a novice doesn't know what gibibytes are, they'll probably just assume that GiB is \"Gigabytes\". That's a close enough approximation for said novice's uses, I'd imagine."}}
{"actor":{"display_login":"WasabiFan"}}