On Tue, Mar 29, 2016 at 02:17:48PM -0700, Yauhen Kharuzhy wrote:
> If device replace entry was found on disk at mounting and its num_write_errors
> stats counter has non-NULL value, then replace operation will never be
> finished and -EIO error will be reported by btrfs_scrub_dev() because
> this counter is never reset.
> 
>  # mount -o degraded /media/a4fb5c0a-21c5-4fe7-8d0e-fdd87d5f71ee/
>  # btrfs replace status /media/a4fb5c0a-21c5-4fe7-8d0e-fdd87d5f71ee/
>  Started on 25.Mar 07:28:00, canceled on 25.Mar 07:28:01 at 0.0%, 40 write 
> errs, 0 uncorr. read errs
>  # btrfs replace start -B 4 /dev/sdg 
> /media/a4fb5c0a-21c5-4fe7-8d0e-fdd87d5f71ee/
>  ERROR: ioctl(DEV_REPLACE_START) failed on 
> "/media/a4fb5c0a-21c5-4fe7-8d0e-fdd87d5f71ee/": Input/output error, no error
> 
> Reset num_write_errors and num_uncorrectable_read_errors counters in the
> dev_replace structure before start of replacing.
> 
> Signed-off-by: Yauhen Kharuzhy <[email protected]>

Reviewed-by: David Sterba <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to