summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_vnops.c
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2002-06-22 22:01:13 +0000
committermckusick <mckusick@FreeBSD.org>2002-06-22 22:01:13 +0000
commitf09d0a42d99d4e0dba5962289c4fdcb4cdb85975 (patch)
tree8cb225afbd1eba02f5fda95d839c0659da36165c /sys/kern/vfs_vnops.c
parentf7dadfce1b27c3260abfeeae1055fb47e2c02a3e (diff)
downloadFreeBSD-src-f09d0a42d99d4e0dba5962289c4fdcb4cdb85975.zip
FreeBSD-src-f09d0a42d99d4e0dba5962289c4fdcb4cdb85975.tar.gz
This patch fixes a size problem with the stat structure for
64-bit architectures that was introduced in the UFS2 code merge two days ago. The stat structure change that caused the problem was the addition of the file create time. Submitted by: Bruce Evans <bde@zeta.org.au> Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r--sys/kern/vfs_vnops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 8dcf5c3..bba159a7 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -562,8 +562,7 @@ vn_stat(vp, sb, td)
/*
* Zero the spare stat fields
*/
- sb->st_lspare = 0;
- sb->st_qspare = 0;
+ bzero(sb, sizeof sb);
/*
* Copy from vattr table
OpenPOWER on IntegriCloud