All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: dsterba@suse.cz, Qu Wenruo <wqu@suse.com>,
	Nikolay Borisov <nborisov@suse.com>,
	linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 1/2] btrfs: remove MIXED_BACKREF sysfs file
Date: Sat, 25 Jun 2022 13:53:47 +0800	[thread overview]
Message-ID: <7ac6d505-6806-338d-d1f2-100737749e89@gmx.com> (raw)
In-Reply-To: <20220624154436.GW20633@twin.jikos.cz>



On 2022/6/24 23:44, David Sterba wrote:
> On Fri, Jun 24, 2022 at 10:02:43PM +0800, Qu Wenruo wrote:
>>
>>
>> On 2022/6/24 21:47, David Sterba wrote:
>>> On Fri, Jun 24, 2022 at 07:46:12PM +0800, Qu Wenruo wrote:
>>>> On 2022/6/24 19:32, Nikolay Borisov wrote:
>>>>> On 24.06.22 г. 11:13 ч., Qu Wenruo wrote:
>>>>>>
>>>>>> I don't think that's the correct way to go.
>>>>>>
>>>>>> In fact, I think sysfs should have everything, no matter how long
>>>>>> supported it is.
>>>>>
>>>>> I disagree, for things which are considered stand alone features - yes.
>>>>> Like free space tree 2, but for something like backrefs, heck I think
>>>>> we've even removed code which predates mixed backrefs so I'm not
>>>>> entirely use the filesystem can function with that feature turned off,
>>>>> actually it's not possible to create a non-mixedbackref file system
>>>>> since this behavior is hard-coded in btrfs-progs. Also the commit for
>>>>> the backrefs states:
>>>>>
>>>>>
>>>>> This commit introduces a new kind of back reference for btrfs metadata.
>>>>> Once a filesystem has been mounted with this commit, IT WILL NO LONGER
>>>>> BE MOUNTABLE BY OLDER KERNELS.
>>>>
>>>> That means we're hiding incompat features from the user.
>>>>
>>>> Even if it's not tunable and should always be enabled, we still need to
>>>> add that.
>>>
>>> I think the mixed_backref is an exception because it's been part of the
>>> default format for so long that we don't even remember there was
>>> something else. For users it does not mean anything today, moreover it
>>> could be confused with mixed block groups.
>>
>> Then after some time, there will be some "smart" users find that we have
>> one incompat bit without any explanation.
>
> Removed functionality is documented, the sysfs feature files are in
> manual pages and we can add a notice in which version it was removed.

Then have all the old features get removed one by one, until one day we
have a dozen of bits set, but only one or two still show in sysfs features?

No, this definitely doesn't look sane to me.

It's just trying to hide some bad behaviors which we didn't get it right
in the first place.
It's fine to didn't get those things done correct in the first place,
but not fine to hide them.

Especially those sysfs is already hidden to most users, way less
invasive than the dmesg output/mkfs features/etc, why we still want to
remove them?

Thanks,
Qu

  reply	other threads:[~2022-06-25  5:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-24  8:01 [PATCH 0/2] Cleanup 2 sysfs flags Nikolay Borisov
2022-06-24  8:01 ` [PATCH 1/2] btrfs: remove MIXED_BACKREF sysfs file Nikolay Borisov
2022-06-24  8:13   ` Qu Wenruo
2022-06-24 11:32     ` Nikolay Borisov
2022-06-24 11:46       ` Qu Wenruo
2022-06-24 13:47         ` David Sterba
2022-06-24 14:02           ` Qu Wenruo
2022-06-24 15:44             ` David Sterba
2022-06-25  5:53               ` Qu Wenruo [this message]
2022-07-11 15:23                 ` David Sterba
2022-07-12  1:06                   ` Qu Wenruo
2022-06-24  8:01 ` [PATCH 2/2] btrfs: remove BIG_METADATA syfs file Nikolay Borisov

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=7ac6d505-6806-338d-d1f2-100737749e89@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=nborisov@suse.com \
    --cc=wqu@suse.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.