Page MenuHomeFreeBSD

D22973.id66705.diff
No OneTemporary

D22973.id66705.diff

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

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)

Event Timeline