On 06.12.2019 23:35 Chris Murphy wrote:
> On Fri, Dec 6, 2019 at 2:26 PM Martin Raiber <martin@xxxxxxxxxxxx> wrote:
>> Hi,
>>
>> with kernel 5.4.1 I have the problem that df shows 100% space used. I
>> can still write to the btrfs volume, but my software looks at the
>> available space and starts deleting stuff if statfs() says there is a
>> low amount of available space.
> This is the second bug like this reported in as many days against 5.4.1.
>
> Does this happen with an older kernel? Any 5.3 kernel or 5.2.15+ or
> any 5.1 kernel? Or heck, even 5.4? :P
Sorry, didn't see the other thread. Looks like the same issue.
Unfortunately, I was previously using 4.19.x, so I can't pinpoint it. I
think it did not occur when I was testing 5.4-rc7, but it does
(randomly?) take a few days of runtime to start occuring, so it could
have just not occurred then.
>> # df -h
>> Filesystem Size Used Avail
>> Use% Mounted on
>> ...
>> /dev/loop0 7.4T 623G 0
>> 100% /media/backup
>> ...
>>
>> statfs("/media/backup", {f_type=BTRFS_SUPER_MAGIC, f_bsize=4096,
>> f_blocks=1985810876, f_bfree=1822074245, f_bavail=0, f_files=0,
>> f_ffree=0, f_fsid={val=[3667078581, 2813298474]}, f_namelen=255,
>> f_frsize=4096, f_flags=ST_VALID|ST_NOATIME}) = 0
>
> f_bavail=0 seems wrong to me.
>
> What distro and what version of coreutils?
It's debian stretch coreutils 8.26-3, glibc 2.29-3. But that's an
excerpt of the strace output so that shouldn't matter.
Thanks!
>
> It's the same questions for Tomasz in yesterday's thread with similar subject.
>
> --
> Chris Murphy