Skip to contentSkip to conversation

btrfs: cover more error codes in btrfs_decode_error

PATCH New David Sterba 1 participant 1 message Mar 20, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: cover more error codes in btrfs_decode_error

---
 fs/btrfs/super.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
fs/btrfs/super.c +6 -0
index 5f21797..808648f 100644
@@ -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;
Signature · 1 line
1.7.9