]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix use of error or warning for missing device
authorAnand Jain <anand.jain@oracle.com>
Mon, 9 Oct 2017 03:07:46 +0000 (11:07 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:59 +0000 (12:27 +0100)
commit1d387573b667954d7acc64a2a352dbf4bac5c301
tree9509172649c45b93faa70fdd5a615befcd16d3b2
parent913281a5eb12b4862f8f0a0c45e19591064e83b7
btrfs: fix use of error or warning for missing device

When device is missing without the -o degraded option then its an error
so report it as an error instead of a warning.  And when -o degraded
option is provided, log the missing device as warning.

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