btrfs: cover more error codes in btrfs_decode_error
authorDavid Sterba <dsterba@suse.cz>
Wed, 20 Mar 2013 14:29:47 +0000 (14:29 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:25 +0000 (15:54 -0400)
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/super.c

index 3c404b8..c3254c9 100644 (file)
@@ -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;