Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137801072
D22973.id66705.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
767 B
Referenced Files
None
Subscribers
None
D22973.id66705.diff
View Options
Index: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h
===================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h
@@ -233,12 +233,11 @@
};
/*
- * We'll take the number 122 and 123 to indicate checksum errors and
- * fragmentation. Those doesn't collide with any errno values as they
- * are greater than ELAST.
+ * These are bespoke errnos used in ZFS. We map them to their closest FreeBSD
+ * equivalents. This gives us more useful error messages from strerror(3).
*/
-#define ECKSUM 122
-#define EFRAGS 123
+#define ECKSUM EINTEGRITY
+#define EFRAGS ENOSPC
typedef void zio_done_func_t(zio_t *zio);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 26, 10:45 PM (2 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26233848
Default Alt Text
D22973.id66705.diff (767 B)
Attached To
Mode
D22973: Map ECKSUM and EFRAGS from ZFS onto real errnos
Attached
Detach File
Event Timeline
Log In to Comment