Re: [PATCH v2] Btrfs: detect corruption when non-root leaf has zero item

2016-09-02 Thread Liu Bo
Hi, On Fri, Sep 02, 2016 at 01:26:10AM -0400, Jeff Mahoney wrote: > On 8/23/16 6:22 PM, Liu Bo wrote: > > Right now we treat leaf which has zero item as a valid one > > because we could have an empty tree, that is, a root that is > > also a leaf without any item, however, in the same case but > >

Re: [PATCH v2] Btrfs: detect corruption when non-root leaf has zero item

2016-09-01 Thread Jeff Mahoney
On 8/23/16 6:22 PM, Liu Bo wrote: > Right now we treat leaf which has zero item as a valid one > because we could have an empty tree, that is, a root that is > also a leaf without any item, however, in the same case but > when the leaf is not a root, we can end up with hitting the > BUG_ON(1) in

Re: [PATCH v2] Btrfs: detect corruption when non-root leaf has zero item

2016-08-24 Thread David Sterba
On Tue, Aug 23, 2016 at 03:22:58PM -0700, Liu Bo wrote: > Right now we treat leaf which has zero item as a valid one > because we could have an empty tree, that is, a root that is > also a leaf without any item, however, in the same case but > when the leaf is not a root, we can end up with

[PATCH v2] Btrfs: detect corruption when non-root leaf has zero item

2016-08-23 Thread Liu Bo
Right now we treat leaf which has zero item as a valid one because we could have an empty tree, that is, a root that is also a leaf without any item, however, in the same case but when the leaf is not a root, we can end up with hitting the BUG_ON(1) in btrfs_extend_item() called by