linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Goffredo Baroncelli <kreijack@libero.it>
To: dsterba@suse.cz, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs-progs: add RAID5/6 support to btrfs fi us
Date: Mon, 25 May 2020 22:40:00 +0200	[thread overview]
Message-ID: <a1819577-dec1-6f99-65cd-4675c59695d6@libero.it> (raw)
In-Reply-To: <20200525132734.GT18421@twin.jikos.cz>

On 5/25/20 3:27 PM, David Sterba wrote:
> On Wed, Mar 18, 2020 at 10:11:56PM +0100, Goffredo Baroncelli wrote:
>> this patch adds support for the raid5/6 profiles in the command
>> 'btrfs filesystem usage'.
>>
>> Until now the problem was that the value r_{data,metadata}_used is not
>> easy to get for a RAID5/6, because it depends by the number of disks.
>> And in a filesystem it is possible to have several raid5/6 chunks with a
>> different number of disks.
> 
> I'd like to get the raid56 'fi du' fixed but the way you implement it
> seems to be a too big leap. I've tried to review this patch several
> times but always got the impression that reworking the calculations to
> make it work for some profiles will most likely break something else. It
> has happened in the past.

I understand your fear. Frankly speaking this code is quite complex.
More than it should be (even without the raid56 support).

I am looking for a solution less intrusive. Let me few days and I will
update the patch.

Then we can discuss its validity.

  
> So, let's start with the case where the filesystem does not have
> multiple profiles per block group type, eg. just raid5 for data and
> calculate that.
> 
> If this also covers the raid56 case with different stripe counts, then
> good but as this is special case I won't mind addressing it separately.
> 
> The general case of multiple profiles per type is probably an
> intermediate state of converting profiles, we can return something sane
> if possible or warn as what we have now.

Another possibility is when a drive is added and a balance is not performed.

However this should be "safe" because it would underestimate the free space.

> 
> I'm fine if you say you're not going to implement that.
> 

I want to work on that.


-- 
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D  17B2 0EDA 9B37 8B82 E0B5

  reply	other threads:[~2020-05-25 20:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-18 21:11 [PATCH] btrfs-progs: add RAID5/6 support to btrfs fi us Goffredo Baroncelli
2020-03-18 21:11 ` [PATCH] Add support for the raid5/6 profiles in the btrfs fi us command Goffredo Baroncelli
2020-03-25 20:12 ` [PATCH] btrfs-progs: add RAID5/6 support to btrfs fi us Goffredo Baroncelli
2020-03-31 21:55   ` DanglingPointer
2020-04-13 10:08 ` Joshua Houghton
2020-04-13 10:28   ` Joshua Houghton
2020-04-13 17:05     ` Goffredo Baroncelli
2020-05-25 13:27 ` David Sterba
2020-05-25 20:40   ` Goffredo Baroncelli [this message]
2020-04-04 19:29 Torstein Eide

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a1819577-dec1-6f99-65cd-4675c59695d6@libero.it \
    --to=kreijack@libero.it \
    --cc=dsterba@suse.cz \
    --cc=kreijack@inwind.it \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).