On 30.01.2020 22:09 Chris Murphy wrote: > On Thu, Jan 30, 2020 at 1:59 PM Josef Bacik <josef@xxxxxxxxxxxxxx> wrote: >> The file system is fine, you don't need to balance or anything, this is purely a >> cosmetic bug. > It's not entirely cosmetic if a program uses statfs to check free > space and then errors when it finds none. Some people are running into > that. > > https://lore.kernel.org/linux-btrfs/alpine.DEB.2.21.99999.375.2001131514010.21037@xxxxxxxxxxxxxx/ > > I guess right now the most reliable work around is to revert to 5.3.18. Yeah, my backup system does check via statfs() if a file fits on storage before backing it up and there is also a setting (global soft file system quota) that allows users to configure the amount of storage the backup system should use (e.g. 90% of available storage). In both cases with statfs() returning zero it'll delete backups till there is "enough free space", i.e. it'll delete all the backups it is allowed to delete and then start reporting errors, which is obviously very problematic.
