nonchip / steam_workaround_fsoverflow

a (currently not yet working) workaround for steam's file system size overflow issue
3 stars 0 forks source link

possible solution for steam #1

Open Francesco149 opened 5 years ago

Francesco149 commented 5 years ago

while trying to solve the same issue i noticed that the calls can return errno 75 and non-zero and even if you override the values steam bails out because of that.

clearing errno to 0 and returning 0 in the hooks might solve the problem. I have my own set of hooks doing this and they seem to work so far

Francesco149 commented 5 years ago

... also it seems that the highest supported value for blocks * blocksize is (INT_MAX>>1) rather than INT_MAX, otherwise some games will still see no space

Francesco149 commented 5 years ago

... also it seems that the highest supported value for blocks * blocksize is (INT_MAX>>1) rather than INT_MAX, otherwise some games will still see no space

nevermind, (INT_MAX<<9) also works and reports 1TB free

but yeah, clearing errno and returning 0 should fix it

nonchip commented 5 years ago

thanks for the input, sadly i can't test it anymore though because my specific issue is fixed by steam, but if you want to send a PR you tested i'll merge it, otherwise i can try to implement it later but can't test it then

nonchip commented 5 years ago

thing is though, steam was not only failing but actually in some places still showing the wrong values, as if it was clearing LD_PRELOAD while it spawned some of its helper processes maybe. so no idea if that'll actually help in the end even though it theoretically should