btrfs-progs: device delete to get errors from the kernel
authorAnand Jain <anand.jain@oracle.com>
Mon, 15 Jul 2013 05:30:53 +0000 (13:30 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 9 Aug 2013 12:32:36 +0000 (14:32 +0200)
commitb8e23d4fb268152447761a9855d0afc75065215f
treecbfe0fa793eefffe9380ec958af01aa10754f946
parent5333445574adf8415ce3b7e8b13cf8feeb39b836
btrfs-progs: device delete to get errors from the kernel

when user runs command btrfs dev del the raid requisite error if any
goes to the /var/log/messages, its not good idea to clutter messages
with these user (knowledge) errors, further user don't have to review
the system messages to know problem with the cli it should be dropped
to the user as part of the cli return.

to bring this feature created a set of the ERROR defined
BTRFS_ERROR_DEV* error codes and created their error string.

I expect this enum to be added with other error which we might
want to communicate to the user land

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
cmds-device.c
ioctl.h