From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: dsterba@suse.cz, Qu Wenruo <wqu@suse.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs-progs: docs: discourage root btrfs usage without an initramfs
Date: Tue, 15 Sep 2026 06:58:31 +0930 [thread overview]
Message-ID: <f60fd3c6-e9ad-4b0b-b0c6-e91e6801d0eb@gmx.com> (raw)
In-Reply-To: <20260914171831.GP54722@twin.jikos.cz>
在 2026/9/15 02:48, David Sterba 写道:
> On Sat, Sep 12, 2026 at 06:55:32PM +0930, Qu Wenruo wrote:
>> For multi-device btrfs, device scanning is required before mounting, and
>> without an initramfs it's impossible to mount a multi-device btrfs.
>>
>> Even if the rootfs is a single-device btrfs, there is nothing preventing
>> the end user to add a device to that btrfs, and fail the next boot.
>>
>> Signed-off-by: Qu Wenruo <wqu@suse.com>
>> ---
>> Documentation/mkfs.btrfs.rst | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/Documentation/mkfs.btrfs.rst b/Documentation/mkfs.btrfs.rst
>> index 0d3d6051b0e7..0bc7b7ac3808 100644
>> --- a/Documentation/mkfs.btrfs.rst
>> +++ b/Documentation/mkfs.btrfs.rst
>> @@ -346,6 +346,10 @@ devices to scan at the time of mount.
>> before all block devices are discovered. The waiting is usually done on the
>> initramfs/initrd systems.
>>
>> + Thus using btrfs as a rootfs without an initramfs is not recommended.
>> + Adding a new device to the rootfs can easily cause the next boot to fail, as
>> + there is no way to register all devices prior to mounting.
>
> That's not a good placement, we should write a full section how to use
> btrfs without initrd and what are the caveats. A paragraph burried in
> mkfs will probably never got noticed.
I'll add a dedicated chapter for device scan related behavior in man 5
btrfs.
>
>> +
>> .. warning::
>> RAID5/6 has known problems and should not be used in production.
>>
>> --
>> 2.55.0
>>
>
prev parent reply other threads:[~2026-09-14 21:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-12 9:25 [PATCH] btrfs-progs: docs: discourage root btrfs usage without an initramfs Qu Wenruo
2026-09-14 17:18 ` David Sterba
2026-09-14 21:28 ` Qu Wenruo [this message]
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=f60fd3c6-e9ad-4b0b-b0c6-e91e6801d0eb@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=dsterba@suse.cz \
--cc=linux-btrfs@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox