diff options
author | kib <kib@FreeBSD.org> | 2008-09-20 19:46:45 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-09-20 19:46:45 +0000 |
commit | 81d455e702a0846e60a6a9b8419b26740c510752 (patch) | |
tree | e507302b4dc7a5cad58e30c582aa41fa9949dc2f /sys/ufs | |
parent | c6232cabbebca4c41ec2707ec6848c87507d2929 (diff) | |
download | FreeBSD-src-81d455e702a0846e60a6a9b8419b26740c510752.zip FreeBSD-src-81d455e702a0846e60a6a9b8419b26740c510752.tar.gz |
Initialize va_flags and va_filerev properly in VOP_GETATTR(). Don't
initialize va_vaflags and va_spare because they are not part of the
VOP_GETATTR() API. Also don't initialize birthtime to ctime or zero.
Submitted by: Jaakko Heinonen <jh saunalahti fi>
Reviewed by: bde
Discussed on: freebsd-fs
MFC after: 1 month
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 904f553..12fd13b 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -433,8 +433,6 @@ ufs_getattr(ap) vap->va_mtime.tv_nsec = ip->i_din1->di_mtimensec; vap->va_ctime.tv_sec = ip->i_din1->di_ctime; vap->va_ctime.tv_nsec = ip->i_din1->di_ctimensec; - vap->va_birthtime.tv_sec = 0; - vap->va_birthtime.tv_nsec = 0; vap->va_bytes = dbtob((u_quad_t)ip->i_din1->di_blocks); } else { vap->va_rdev = ip->i_din2->di_rdev; |