summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2013-03-20 14:29:47 +0000
committerJosef Bacik <jbacik@fusionio.com>2013-05-06 15:54:25 -0400
commit94ef7280e8b3a5b13ba3cc515e5c198c1181176e (patch)
tree2fd0d833c91caa4a3fce5c21a934d8a8ed2dcf90 /fs/btrfs/super.c
parent4884b476d769377c02f74fa83593e6afb562ad40 (diff)
downloadop-kernel-dev-94ef7280e8b3a5b13ba3cc515e5c198c1181176e.zip
op-kernel-dev-94ef7280e8b3a5b13ba3cc515e5c198c1181176e.tar.gz
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>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 3c404b8..c3254c9 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -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;
OpenPOWER on IntegriCloud