Re: [PATCH 12/15] btrfs-progs: check: increase counter error in check_inode_recs()

2018-01-26 Thread Qu Wenruo
On 2018年01月26日 16:35, Su Yue wrote: > Counter @error decides return values of check_inode_recs(). > > Previously, @error won't be incremented even repair_inode_recs() failed. > It causes 'btrfs check --repair' prints some error information but > returns 0. > > So, if root dir is missing and rep

[PATCH 12/15] btrfs-progs: check: increase counter error in check_inode_recs()

2018-01-26 Thread Su Yue
Counter @error decides return values of check_inode_recs(). Previously, @error won't be incremented even repair_inode_recs() failed. It causes 'btrfs check --repair' prints some error information but returns 0. So, if root dir is missing and repair is disabled, @error should be incremented. And a