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 3c404b8e83bbb4a68ae2dc939fda2634ce8d9163..c3254c995fc880c7d6dcbc06d1cbfb24dd4e2c09 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;