]> 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)
commitea8282fd71730f1ed2033888edbcd89e715f82f1
treec7af973c79ef4db8951e8b2cf2f588857d9c6e11
parent16fb3f0b22f307e9f554c786a8b3c7d30c0cda56
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