OSDN Git Service

Btrfs: use BTRFS_ERROR_DEV_MISSING_NOT_FOUND when missing device is not found
authorAnand Jain <anand.jain@oracle.com>
Fri, 14 Aug 2015 10:32:56 +0000 (18:32 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 1 Oct 2015 14:47:16 +0000 (16:47 +0200)
commitd74a625987a134b00749e3912bdb6d3ac83fd71d
tree5c659faacdb63e09d165a23967da2a58292f5d72
parenta4553fefb59cb0336f543fa567170b47e90142a9
Btrfs: use BTRFS_ERROR_DEV_MISSING_NOT_FOUND when missing device is not found

Use btrfs specific error code BTRFS_ERROR_DEV_MISSING_NOT_FOUND instead
of -ENOENT.  Next this removes the logging when user specifies "missing"
and we don't find it in the kernel device list. Logging are for system
events not for user input errors.

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