Re: [RFC PATCH 3/4] Btrfs add readonly support for error handle

2010-11-25 Thread Miao Xie
On Thu, 25 Nov 2010 19:42:53 +0800, Wenyi Liu wrote: Hi Xie Miao: I cannot understand the btrfs_decode_error(). why you chose the three errnos? what about others? eager for Ur replay. Thanks!! I think liu chose these three errors is because these errors are familiar ones that are hard to b

Re: [RFC PATCH 3/4] Btrfs add readonly support for error handle

2010-11-25 Thread Wenyi Liu
Hi Xie Miao: I cannot understand the btrfs_decode_error(). why you chose the three errnos? what about others? eager for Ur replay. Thanks!! --- Best Regards, Liu Wenyi 2010/11/25, Miao Xie : > From: Liu Bo > > This patch provide a new error handle interface for those errors that > handled >

[RFC PATCH 3/4] Btrfs add readonly support for error handle

2010-11-25 Thread Miao Xie
From: Liu Bo This patch provide a new error handle interface for those errors that handled by current BUG_ONs. In order to protect btrfs from panic, when it comes to those BUG_ON errors, the interface forces btrfs readonly and saves the FS state to disk. And the filesystem can be umounted, alth