diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 1999-11-18 08:14:20 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 1999-11-18 08:14:20 +0000 |
| commit | 91921bd5976bc40a97f48b9a019b381b77ab6f85 (patch) | |
| tree | 1e9f6177099f5830d031c29fd80bc1676466fbaf /sys/kern/vfs_vnops.c | |
| parent | e918fc8f723cc57e0cf8e6423f659139e9a9570f (diff) | |
Notes
Diffstat (limited to 'sys/kern/vfs_vnops.c')
| -rw-r--r-- | sys/kern/vfs_vnops.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 663897f95447..ebe3497a1b37 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -398,6 +398,14 @@ vn_stat(vp, sb, p) error = VOP_GETATTR(vp, vap, p->p_ucred, p); if (error) return (error); + + /* + * Zero the spare stat fields + */ + sb->st_lspare = 0; + sb->st_qspare[0] = 0; + sb->st_qspare[1] = 0; + /* * Copy from vattr table */ |
