* [bug] df returns 100% used for empty mixed block group filesystem
@ 2016-03-10 8:24 Chris Murphy
2016-03-10 8:33 ` Roman Mamedov
0 siblings, 1 reply; 5+ messages in thread
From: Chris Murphy @ 2016-03-10 8:24 UTC (permalink / raw)
To: Btrfs BTRFS
kernel 4.5.0 rc7
btrfs-progs-4.4.1-1
Summary: A new empty mixed block group "-M" filesystem shows up as
100% full with regular df (gnu coreutils 8.24). Pretty sure this is
not a regression, but no regression testing done.
https://bugzilla.kernel.org/show_bug.cgi?id=114281
--
Chris Murphy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [bug] df returns 100% used for empty mixed block group filesystem
2016-03-10 8:24 [bug] df returns 100% used for empty mixed block group filesystem Chris Murphy
@ 2016-03-10 8:33 ` Roman Mamedov
2016-03-10 17:40 ` David Sterba
0 siblings, 1 reply; 5+ messages in thread
From: Roman Mamedov @ 2016-03-10 8:33 UTC (permalink / raw)
To: Chris Murphy; +Cc: Btrfs BTRFS
[-- Attachment #1: Type: text/plain, Size: 679 bytes --]
On Thu, 10 Mar 2016 01:24:44 -0700
Chris Murphy <lists@colorremedies.com> wrote:
> kernel 4.5.0 rc7
> btrfs-progs-4.4.1-1
>
> Summary: A new empty mixed block group "-M" filesystem shows up as
> 100% full with regular df (gnu coreutils 8.24). Pretty sure this is
> not a regression, but no regression testing done.
>
>
> https://bugzilla.kernel.org/show_bug.cgi?id=114281
Just guessing here, but this might be related?
[PATCH] btrfs: statfs: report zero available if metadata are exhausted
http://www.spinics.net/lists/linux-btrfs/msg48013.html
Maybe some maths there are wrong in case of a mixed blockgroup filesystem.
--
With respect,
Roman
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [bug] df returns 100% used for empty mixed block group filesystem
2016-03-10 8:33 ` Roman Mamedov
@ 2016-03-10 17:40 ` David Sterba
2016-04-27 22:55 ` David Sterba
0 siblings, 1 reply; 5+ messages in thread
From: David Sterba @ 2016-03-10 17:40 UTC (permalink / raw)
To: Roman Mamedov; +Cc: Chris Murphy, Btrfs BTRFS
On Thu, Mar 10, 2016 at 01:33:34PM +0500, Roman Mamedov wrote:
> On Thu, 10 Mar 2016 01:24:44 -0700
> Chris Murphy <lists@colorremedies.com> wrote:
>
> > kernel 4.5.0 rc7
> > btrfs-progs-4.4.1-1
> >
> > Summary: A new empty mixed block group "-M" filesystem shows up as
> > 100% full with regular df (gnu coreutils 8.24). Pretty sure this is
> > not a regression, but no regression testing done.
> >
> >
> > https://bugzilla.kernel.org/show_bug.cgi?id=114281
>
> Just guessing here, but this might be related?
>
> [PATCH] btrfs: statfs: report zero available if metadata are exhausted
> http://www.spinics.net/lists/linux-btrfs/msg48013.html
>
> Maybe some maths there are wrong in case of a mixed blockgroup filesystem.
Yes it's caused by the referenced patch. The statfs has been broken for
mixed blockgroups but the 100% used on empty filesystem looks weird, so
it's time to fix the mixed-bg case.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [bug] df returns 100% used for empty mixed block group filesystem
2016-03-10 17:40 ` David Sterba
@ 2016-04-27 22:55 ` David Sterba
2016-04-28 9:58 ` Luis de Bethencourt
0 siblings, 1 reply; 5+ messages in thread
From: David Sterba @ 2016-04-27 22:55 UTC (permalink / raw)
To: dsterba, Roman Mamedov, Chris Murphy, Btrfs BTRFS, luisbg
On Thu, Mar 10, 2016 at 06:40:54PM +0100, David Sterba wrote:
> On Thu, Mar 10, 2016 at 01:33:34PM +0500, Roman Mamedov wrote:
> > On Thu, 10 Mar 2016 01:24:44 -0700
> > Chris Murphy <lists@colorremedies.com> wrote:
> >
> > > kernel 4.5.0 rc7
> > > btrfs-progs-4.4.1-1
> > >
> > > Summary: A new empty mixed block group "-M" filesystem shows up as
> > > 100% full with regular df (gnu coreutils 8.24). Pretty sure this is
> > > not a regression, but no regression testing done.
> > >
> > >
> > > https://bugzilla.kernel.org/show_bug.cgi?id=114281
> >
> > Just guessing here, but this might be related?
> >
> > [PATCH] btrfs: statfs: report zero available if metadata are exhausted
> > http://www.spinics.net/lists/linux-btrfs/msg48013.html
> >
> > Maybe some maths there are wrong in case of a mixed blockgroup filesystem.
>
> Yes it's caused by the referenced patch. The statfs has been broken for
> mixed blockgroups but the 100% used on empty filesystem looks weird, so
> it's time to fix the mixed-bg case.
JFYI, fixed by Luis de Bethencourt and patches queued for 4.7
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [bug] df returns 100% used for empty mixed block group filesystem
2016-04-27 22:55 ` David Sterba
@ 2016-04-28 9:58 ` Luis de Bethencourt
0 siblings, 0 replies; 5+ messages in thread
From: Luis de Bethencourt @ 2016-04-28 9:58 UTC (permalink / raw)
To: dsterba, Roman Mamedov, Chris Murphy, Btrfs BTRFS
On 27/04/16 23:55, David Sterba wrote:
> On Thu, Mar 10, 2016 at 06:40:54PM +0100, David Sterba wrote:
>> On Thu, Mar 10, 2016 at 01:33:34PM +0500, Roman Mamedov wrote:
>>> On Thu, 10 Mar 2016 01:24:44 -0700
>>> Chris Murphy <lists@colorremedies.com> wrote:
>>>
>>>> kernel 4.5.0 rc7
>>>> btrfs-progs-4.4.1-1
>>>>
>>>> Summary: A new empty mixed block group "-M" filesystem shows up as
>>>> 100% full with regular df (gnu coreutils 8.24). Pretty sure this is
>>>> not a regression, but no regression testing done.
>>>>
>>>>
>>>> https://bugzilla.kernel.org/show_bug.cgi?id=114281
>>>
>>> Just guessing here, but this might be related?
>>>
>>> [PATCH] btrfs: statfs: report zero available if metadata are exhausted
>>> http://www.spinics.net/lists/linux-btrfs/msg48013.html
>>>
>>> Maybe some maths there are wrong in case of a mixed blockgroup filesystem.
>>
>> Yes it's caused by the referenced patch. The statfs has been broken for
>> mixed blockgroups but the 100% used on empty filesystem looks weird, so
>> it's time to fix the mixed-bg case.
>
> JFYI, fixed by Luis de Bethencourt and patches queued for 4.7
>
Good to know the issue was important to some people :)
It was fun to fix.
David,
I have been travelling the last week. I will continue with my second bug this
weekend. [0] Sorry for the delay on this.
Thanks,
Luis
[0] btrfs fi usage crash when multiple device volume contains seed device
https://bugzilla.kernel.org/show_bug.cgi?id=115851
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-04-28 9:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-10 8:24 [bug] df returns 100% used for empty mixed block group filesystem Chris Murphy
2016-03-10 8:33 ` Roman Mamedov
2016-03-10 17:40 ` David Sterba
2016-04-27 22:55 ` David Sterba
2016-04-28 9:58 ` Luis de Bethencourt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).