From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Mason Subject: Re: Workaround for race condition at boot Date: Tue, 30 Mar 2010 09:08:02 -0400 Message-ID: <20100330130802.GF13190@think> References: <9A0AC2A7-90F9-4B80-AF0F-8C65083DE1B5@mailservices.uwaterloo.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-btrfs@vger.kernel.org To: Mark Rada Return-path: In-Reply-To: <9A0AC2A7-90F9-4B80-AF0F-8C65083DE1B5@mailservices.uwaterloo.ca> List-ID: On Mon, Mar 29, 2010 at 10:40:12PM -0400, Mark Rada wrote: > Hi, > > In my time playing around with btrfs I have had difficulty in mounting and btrfs partitions that use multiple devices. I'm aware that there is a note about a gotcha on the wiki, but I'm not trying to mount the btrfs partition as the root. > > However, I have noticed that if I force a btrfs filesystem scan before trying to mount, then everything will work. > > I originally created a bug report on the Gentoo Bugzilla: > http://bugs.gentoo.org/show_bug.cgi?id=309219 > This isn't a race condition, it is built into the filesystem. Later versions of btrfs progs will pull the details right out of udev instead of needing btrfsctl -a, but today the btrfsctl -a is the only way. This is similar to what needs to happen on lvm, its just that the initramfs tools already understand lvm ;) -chris