aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r--sys/sys/mount.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 00040932e7a3..1477ffad9fe3 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -57,6 +57,9 @@ typedef struct fsid { int32_t val[2]; } fsid_t; /* filesystem id type */
/*
* File identifier.
* These are unique per filesystem on a single machine.
+ *
+ * Note that the offset of fid_data is 4 bytes, so care must be taken to avoid
+ * undefined behavior accessing unaligned fields within an embedded struct.
*/
#define MAXFIDSZ 16