On 12/08/2014 09:36 AM, Goffredo Baroncelli wrote:
I like this approach, but as I wrote before, it seems that initramfs executes a "btrfs dev scan".... (see my previoue email 'Re: PROBLEM: #89121 BTRFS mixes up mounted devices with their snapshots' date 2014/12/03 9:34):
Roll your own for now. I haven't started doing any significant btrfs specific work on it but the initramfs builder in my project http://underdog.sourceforge.net might get you past your problem pretty easily for now. It would be easy to white/black list which devices you want to submit to scan or mount.
It is plumbed up to look at each storage region one-by-one so you could assemble your file system that way.
(Note that the eventual point of the project isn't really the initramfs stuff but that's what I needed more/first.)
It's fairly well documented and I use it for some non-trivially complex systems but its not (yet) so complex that it's hard to design hooks for it.
-- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html