Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/puffs ctassert size of some key structures does not c...
details: https://anonhg.NetBSD.org/src/rev/796afeb02a86
branches: trunk
changeset: 756078:796afeb02a86
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Jul 06 12:28:40 2010 +0000
description:
ctassert size of some key structures does not change
diffstat:
sys/fs/puffs/puffs_vfsops.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 183cbf045d82 -r 796afeb02a86 sys/fs/puffs/puffs_vfsops.c
--- a/sys/fs/puffs/puffs_vfsops.c Tue Jul 06 12:05:18 2010 +0000
+++ b/sys/fs/puffs/puffs_vfsops.c Tue Jul 06 12:28:40 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: puffs_vfsops.c,v 1.91 2010/07/06 12:05:18 pooka Exp $ */
+/* $NetBSD: puffs_vfsops.c,v 1.92 2010/07/06 12:28:40 pooka Exp $ */
/*
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.91 2010/07/06 12:05:18 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.92 2010/07/06 12:28:40 pooka Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@@ -78,6 +78,16 @@
.pop_close = puffs_msgif_close,
};
+/*
+ * Try to ensure data structures used by the puffs protocol
+ * do not unexpectedly change.
+ */
+#ifdef __i386__
+CTASSERT(sizeof(struct puffs_kargs) == 3928);
+CTASSERT(sizeof(struct vattr) == 136);
+CTASSERT(sizeof(struct puffs_req) == 44);
+#endif
+
int
puffs_vfsop_mount(struct mount *mp, const char *path, void *data,
size_t *data_len)
Home |
Main Index |
Thread Index |
Old Index