From mboxrd@z Thu Jan 1 00:00:00 1970 From: sniper Subject: Re: bug when removing device Date: Fri, 30 Apr 2010 21:37:54 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: linux-btrfs@vger.kernel.org To: "Yan, Zheng" Return-path: In-Reply-To: List-ID: > I have sent a set of patches that address bugs like this. > I applied the V2 patchset to kernel-v2.6.32 (actually, I applied them to btrfs-unstalbe, took a kernel-v2.6.32 and replaced its btrfs with the patched one in btrfs-unstable), and did the test, then got: $ sudo btrfs device del /dev/loop1 /tmp/mnt0/ ERROR: error removing the device '/dev/loop1' $ sudo btrfs device del /dev/loop0 /tmp/mnt0/ ERROR: error removing the device '/dev/loop0' dmesg: [ 3463.136786] btrfs: unable to remove the only writeable device [ 3468.205188] btrfs: unable to remove the only writeable device Is it something wrong?