Re: [PATCH] Btrfs: don't allow the replace procedure on read only filesystems

2013-08-23 Thread Stefan Behrens
On Fri, 23 Aug 2013 14:54:50 +0800, Wang Shilong wrote: > Hey Stefan, > > On 08/20/2013 12:51 AM, Stefan Behrens wrote: >> If you start the replace procedure on a read only filesystem, at >> the end the procedure fails to write the updated dev_items to the >> chunk tree. The problem is that this e

[PATCH] Btrfs: don't allow the replace procedure on read only filesystems

2013-08-19 Thread Stefan Behrens
If you start the replace procedure on a read only filesystem, at the end the procedure fails to write the updated dev_items to the chunk tree. The problem is that this error is not indicated except for a WARN_ON(). If the user now thinks that everything was done as expected and destroys the source