Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 558196 - [PATCH] Support booting from multi-device Btrfs filesystems
Summary: [PATCH] Support booting from multi-device Btrfs filesystems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-19 19:19 UTC by Niklas Haas
Modified: 2015-08-19 19:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch implementing the requested behavior. (0001-Support-multi-device-Btrfs-filesystems.patch,5.62 KB, patch)
2015-08-19 19:20 UTC, Niklas Haas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Niklas Haas 2015-08-19 19:19:24 UTC
Btrfs filesystems spanning more than one device (eg. RAID) require running `btrfs device scan` to initialize the kernel's knowledge of attached btrfs devices before `mount` can be executed successfully.

This patch adds support for said command, in the spirit of eg. `dolvm` or `dozfs`.

Reproducible: Always




I have tested this patch on my machine and it seems to be working as expected.
Comment 1 Niklas Haas 2015-08-19 19:20:10 UTC
Created attachment 409496 [details, diff]
Patch implementing the requested behavior.
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2015-08-19 19:26:37 UTC
I spent a small amount of irc watching this unfold and this all looks good to me.
Comment 3 Niklas Haas 2015-08-19 19:27:18 UTC
Note that this is similar to the behavior introduced in #303529, but that command (btrfsctl) has been deprecated.

This version also improves on that patch by moving the behavior to the right place (startVolumes), making it configurable, auto-detecting btrfs rootfs and automatically including /sbin/btrfs in the initramfs.

Unless somebody *really* still needs the deprecated btrfsctl variant, those lines should be removed.
Comment 4 Rick Farina (Zero_Chaos) gentoo-dev 2015-08-19 19:28:52 UTC
Looks clean, well tested, added.

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=d41ebc4d721a8706d0b0f7c5cd1ed8dab42d667c

Thanks hassn!