Thread (11 messages) 11 messages, 4 authors, 2012-10-09

Re: [PATCH v4 0/4] btrfs: extended inode refs

From: Mark Fasheh <hidden>
Date: 2012-09-27 19:50:01

On Tue, Sep 25, 2012 at 04:04:46PM -0400, Chris Mason wrote:
On Mon, Aug 20, 2012 at 02:29:17PM -0600, Mark Fasheh wrote:
quoted
Testing wise, the basic namespace operations work well (link, unlink, etc).
The rest has gotten less debugging (and I really don't have a great way of
testing the code in tree-log.c) Attached to this e-mail are btrfs-progs
patches which make testing of the changes possible.
Hi Mark,

I hit a few problems testing this, so I have the patch below that I plan
on folding into your commits (to keep bisect from crashing in tree log).

Just let me know if this is a problem, or if you see any bugs in there.
I'm still doing a last round of checks on it, but I wanted to send along
early for comments.

The biggest change in here is to always check the ref_objectid when
returning a backref.  Hash collisions mean we may return a ref for a
completely different parent id otherwise.  I think I caught all the
places missing that logic, but please double check me.
Ahh yes of course. I missed that in a couple key areas. Thanks for fixing
it.

Other than that I went through and fixed up bugs in
tree-log.c.  __add_inode_ref had a bunch of cut and paste errors, and you
carefully preserved a huge use-after-free bug in the original
add_inode_ref.
Cool, everything in there looks good to me. Thanks again Chris!
	--Mark

--
Mark Fasheh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help