mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
btrfs: cover more error codes in btrfs_decode_error
Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
This commit is contained in:
parent
4884b476d7
commit
94ef7280e8
1 changed files with 6 additions and 0 deletions
|
@ -81,6 +81,12 @@ static const char *btrfs_decode_error(int errno)
|
|||
case -EEXIST:
|
||||
errstr = "Object already exists";
|
||||
break;
|
||||
case -ENOSPC:
|
||||
errstr = "No space left";
|
||||
break;
|
||||
case -ENOENT:
|
||||
errstr = "No such entry";
|
||||
break;
|
||||
}
|
||||
|
||||
return errstr;
|
||||
|
|
Loading…
Reference in a new issue