Mailinglist Archive: opensuse-factory (602 mails)

< Previous Next >
Re: [opensuse-factory] zypper dup disk space requirement
08.02.2019 3:43, Bernhard Voelker пишет:
On 2/7/19 6:51 PM, Andrei Borzenkov wrote:
07.02.2019 17:39, Bernhard Voelker пишет:

I disagree: as already stated, BTRFS does not expose the right (or useful?)
numbers to the statfs(2) system call

Show kernel code where it does it and explain why the value it
calculates is not right. This also presumes you know how to calculate it
right - did you submit your patch to fix it?

It has been mentioned repeatedly that a user should run 'btrfs filesystem
usage /'
to get the "correct" numbers (whatever they are), and: "df spit out useless

So you do not actually know anything about it, you just repeat what
others say.

I wouldn't go that far: I don't think the numbers df(1) gets from statfs(2)
totally wrong, but it is obviously not transparent for the user how to
them in the context of a BTRFS file system, and incidentally such confusions
happen in critical situations near ENOSPC.

I don't want to (and don't have time to) fix anything in the kernel -
wrt/ btrfs - , but I'd be willing to discuss with the other coreutils
to add some snippet to the df documentation or on the FAQ page how a user
could interpret BTRFS numbers.

This discussion is about estimating free space on root filesystem. None
of other "BTRFS numbers" will give you anything that plain "df" does not

Those "BTRFS numbers" may help to answer the question "where did my
space go" but that is not the point of this thread.

What do these numbers actually tell for BTRFS / and what not?
Or should it just link to

Show me how to create filesystem with different per-subvolume profiles
using SUSE installer (or manually for that matter).
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups