From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Mason Subject: Re: [PATCH] Btrfs: fix enospc error caused by wrong checks of the chunk allocation Date: Tue, 17 Jan 2012 11:39:03 -0500 Message-ID: <20120117163903.GD30322@shiny> References: <4F153E33.8070803@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: miaox@cn.fujitsu.com, Linux Btrfs To: Mitch Harder Return-path: In-Reply-To: List-ID: On Tue, Jan 17, 2012 at 10:31:00AM -0600, Mitch Harder wrote: > On Tue, Jan 17, 2012 at 3:24 AM, Miao Xie wrote: > > After applying this patch to the re-based integration branch, I was > able to clear an EFBIG error (that seemed to be related to chunk > allocation) I had previously been receiving while trying to balance a > partially corrupted partition. > > I was receiving this bug from the btrfs_add_system_chunk() function > which had do_chunk_alloc() close up in the callback list. The EFBIG error was my bug. There's a commit in the new integration branch that fixes it (and an earlier one in integration that adds it) -chris