Re: [PATCH 5/9] btrfs: replace cancel is successful if scrub cancel is successful

2018-11-15 Thread Anand Jain
On 11/15/2018 11:27 PM, David Sterba wrote: On Sun, Nov 11, 2018 at 10:22:20PM +0800, Anand Jain wrote: In btrfs_dev_replace_cancel() we should check if the btrfs_scrub_cancel() is successful. If the btrfs_scrub_cancel() fails, return BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED so that user

Re: [PATCH 5/9] btrfs: replace cancel is successful if scrub cancel is successful

2018-11-15 Thread David Sterba
On Sun, Nov 11, 2018 at 10:22:20PM +0800, Anand Jain wrote: > In btrfs_dev_replace_cancel() we should check if the > btrfs_scrub_cancel() is successful. If the btrfs_scrub_cancel() fails, return > BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED so that user can try to > cancel the replace again. I've

[PATCH 5/9] btrfs: replace cancel is successful if scrub cancel is successful

2018-11-11 Thread Anand Jain
In btrfs_dev_replace_cancel() we should check if the btrfs_scrub_cancel() is successful. If the btrfs_scrub_cancel() fails, return BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED so that user can try to cancel the replace again. Signed-off-by: Anand Jain --- fs/btrfs/dev-replace.c | 22

Re: [PATCH 5/9] btrfs: replace cancel is successful if scrub cancel is successful

2018-11-07 Thread Nikolay Borisov
On 7.11.18 г. 14:25 ч., Nikolay Borisov wrote: > > > On 7.11.18 г. 13:43 ч., Anand Jain wrote: >> In btrfs_dev_replace_cancel() we should check if the >> btrfs_scrub_cancel() is successful. If the btrfs_scrub_cancel() fails, return >> BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED so that user

Re: [PATCH 5/9] btrfs: replace cancel is successful if scrub cancel is successful

2018-11-07 Thread Nikolay Borisov
On 7.11.18 г. 13:43 ч., Anand Jain wrote: > In btrfs_dev_replace_cancel() we should check if the > btrfs_scrub_cancel() is successful. If the btrfs_scrub_cancel() fails, return > BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED so that user can try to > cancel the replace again. > > Signed-off-by:

[PATCH 5/9] btrfs: replace cancel is successful if scrub cancel is successful

2018-11-07 Thread Anand Jain
In btrfs_dev_replace_cancel() we should check if the btrfs_scrub_cancel() is successful. If the btrfs_scrub_cancel() fails, return BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED so that user can try to cancel the replace again. Signed-off-by: Anand Jain --- fs/btrfs/dev-replace.c | 22