linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sanidhya Solanki <lkml.page@gmail.com>
To: David Sterba <dsterba@suse.cz>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs: Change RAID stripesize to a user-configurable option
Date: Thu, 28 Jul 2016 11:42:55 -0400	[thread overview]
Message-ID: <20160728114255.0e7559ef@ad> (raw)
In-Reply-To: <20160728113227.GS30795@twin.jikos.cz>

On Thu, 28 Jul 2016 13:32:27 +0200
David Sterba <dsterba@suse.cz> wrote:

> I'll comment on the overall approach and skip code-specific comments.
> 
> The changelog does not explain why there's a need for a new blockgroup
> type and what's the relation to the existing types. It seems that it
> extends the data/metadata/system group, but I think this is totally
> wrong.

I agree in principle, but I did not want to modify the existing balance
targets, but, instead, piggyback on the existing balance implementation
to re-balance the data.
This approach was recommended to be by an experienced BTrFS developer
on the IRC as the right way to implement the change. My previous
implementation before asking on the IRC used a new ioctl call to
change the hard coded values and then re-write the data (not a good
approach in hindsight.)
 
> The proposed changes modify part of the on-disk format, that would
> require a incompat bit and brings the usual load of unpleasant issues
> with backward compatibility. The current data structures should be
> enough for configurable stripe size.  If you want to make stripe size
> configurable, then replace all hardcoded values of BTRFS_STRIPE_LEN.

No re-balance required after passing the stripe size change command?
What about the on-disk metadata, that relies on the "stripesize" and
"stripe_len" variables for calculations?

Thanks
Sanidhya

  reply	other threads:[~2016-07-28 15:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-22 13:42 [PATCH] btrfs: Change RAID stripesize to a user-configurable option Sanidhya Solanki
2016-07-22 13:45 ` Sanidhya Solanki
2016-07-28 11:32 ` David Sterba
2016-07-28 15:42   ` Sanidhya Solanki [this message]
2016-08-18 13:26     ` David Sterba
2016-08-18 14:36       ` Hugo Mills
2016-07-30 10:23   ` Sanidhya Solanki
2016-08-03  5:28   ` Sanidhya Solanki

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=20160728114255.0e7559ef@ad \
    --to=lkml.page@gmail.com \
    --cc=dsterba@suse.cz \
    --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).