From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Trofimovich Subject: Re: [PATCH] Btrfs: fix easily get into ENOSPC in mixed case Date: Mon, 11 Apr 2011 23:27:01 +0300 Message-ID: <20110411232701.102494bd@sf> References: <20110402121946.6bf27f80@sf.home> <4D96EE76.5040208@cn.fujitsu.com> <20110402134132.0391f4fd@sf.home> <4D9708E0.6030206@cn.fujitsu.com> <20110402155545.2159043a@sf.home> <4D9ECAF5.50108@cn.fujitsu.com> <20110409000932.6154c7b5@sf> <20110409001920.089c4409@sf> <20110409005555.4b136f25@sf> <4DA29FC1.9050900@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/bw+S_MZl50o+FUaS8.Swyr_"; protocol="application/pgp-signature" Cc: linux-btrfs@vger.kernel.org, Josef Bacik , Arne Jansen To: liubo Return-path: In-Reply-To: <4DA29FC1.9050900@cn.fujitsu.com> List-ID: --Sig_/bw+S_MZl50o+FUaS8.Swyr_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 11 Apr 2011 14:29:21 +0800 liubo wrote: > On 04/09/2011 05:55 AM, Sergei Trofimovich wrote: > > [ 100.500011] Call Trace: > > [ 100.500011] [] vfs_unlink+0x80/0xf0 > > [ 100.500011] [] do_unlinkat+0x173/0x1b0 > > [ 100.500011] [] ? fsnotify_find_inode_mark+0x3b/0x= 50 > > [ 100.500011] [] ? filp_close+0x61/0x90 > > [ 100.500011] [] sys_unlinkat+0x1d/0x40 > > [ 100.500011] [] system_call_fastpath+0x16/0x1b > > [ 100.500011] Code: 4c 8b 65 e0 48 8b 5d d8 4c 8b 6d e8 4c 8b 75 f0 4c= 8b 7d f8 c9 c3 0f 1f 40 00 4c 89 fe 4c 89 ef e8 05 d0 ff ff 85 c0 74 bb 0f= 0b <0f> 0b 89 c3 eb cd 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57=20 > > [ 100.500011] RIP [] btrfs_unlink+0xd1/0xe0 [btrfs] > > [ 100.500011] RSP > > [ 100.525672] ---[ end trace 7e63b9144b7307fe ]--- > >=20 > > Looks like I won't be able to test your patch until this thing will go = away first. >=20 > Thanks a lot for testing, though. >=20 > I guess something messed up your btrfs metadata, cause when btrfs_unlink(= ) wanted to remove A, > it found that A was just missing... Looks like it's ret =3D -28 (a ENOSPC). Yes, you are right. Moreover, as Ar= ne found out, I used wrong patch for btrfs-progs to create --mixed filesystems. I set wro= ng bit in superblock (the 8ULL << 0, not 4ULL << 0) - the COMPRESS_LZO, so my metadat= a is really screwed. Please, disregard all my OOpses reported against --mixed FS. Sorry. --=20 Sergei --Sig_/bw+S_MZl50o+FUaS8.Swyr_ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk2jZBgACgkQcaHudmEf86oDCwCff5b5mHD+Z9ASxYouqtQQylGQ VaAAn07fXJ4Vm9AKPqPobJIWNZoMbvAW =3EC5 -----END PGP SIGNATURE----- --Sig_/bw+S_MZl50o+FUaS8.Swyr_--