From: Zhao Lei Date: Mon, 20 Jul 2015 09:54:50 +0000 (+0800) Subject: btrfs: Show detail information when mount failed on missing devices X-Git-Tag: omap-for-v4.3/fixes-rc1~86^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78fa177029802f7f10953d357067171f39a79b81;p=pandora-kernel.git btrfs: Show detail information when mount failed on missing devices When mount failed because missing device, we can see following dmesg: [ 1060.267743] BTRFS: too many missing devices, writeable mount is not allowed [ 1060.273158] BTRFS: open_ctree failed This patch add missing_device_number and tolerated_missing_device_number to above output, to let user know what really happened, and helps bug-report and debug. dmesg after patch: [ 127.050367] BTRFS: missing devices(1) exceeds the limit(0), writeable mount is not allowed [ 127.056099] BTRFS: open_ctree failed Changelog v1->v2: 1: Changed to more clear description, suggested-by: Anand Jain Suggested-by: Anand Jain Signed-off-by: Zhao Lei Reviewed-by: Anand Jain Signed-off-by: Chris Mason --- Reading git-diff-tree failed