Skip to content

Commit

Permalink
btrfs: add more codes to decoder table
Browse files Browse the repository at this point in the history
I've grepped logs for 'errno=.*unknown' and found -95, -117 and -122,
now added to the table. The wording is adjusted so it makes sense in
context of filesystem.

Reviewed-by: Anand Jain <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
kdave committed May 25, 2020
1 parent d54f814 commit fb8521c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ const char * __attribute_const__ btrfs_decode_error(int errno)
case -EROFS: /* -30 */
errstr = "Readonly filesystem";
break;
case -EOPNOTSUPP: /* -95 */
errstr = "Operation not supported";
break;
case -EUCLEAN: /* -117 */
errstr = "Filesystem corrupted";
break;
case -EDQUOT: /* -122 */
errstr = "Quota exceeded";
break;
}

return errstr;
Expand Down

0 comments on commit fb8521c

Please sign in to comment.