]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix EIO misuse to report missing degraded option
authorAnand Jain <anand.jain@oracle.com>
Mon, 9 Oct 2017 03:07:44 +0000 (11:07 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:59 +0000 (12:27 +0100)
commit821d104197c51b189319bb89e6d8dd26c35f2c57
treec7af973c79ef4db8951e8b2cf2f588857d9c6e11
parentc3726c18dbfc3605888b0a3a5860024018f65edb
btrfs: fix EIO misuse to report missing degraded option

EIO is only for the IO failure to the device, avoid it. Use ENOENT as
that's the closest error code describing what happened.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c