diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2008-09-20 19:50:52 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2008-09-20 19:50:52 +0000 |
commit | caf8aec886e25d58354701ed52e6321ea4f4239c (patch) | |
tree | 115bb5b75428770843d9c2637d376cde0d96084e /sys/gnu/fs/xfs/FreeBSD | |
parent | 4c5a20e3da04533aa054a826511d723a73669d45 (diff) | |
download | src-caf8aec886e25d58354701ed52e6321ea4f4239c.tar.gz src-caf8aec886e25d58354701ed52e6321ea4f4239c.zip |
fdescfs, devfs, mqueuefs, nfs, portalfs, pseudofs, tmpfs and xfs
initialize the vattr structure in VOP_GETATTR() with VATTR_NULL(),
vattr_null() or by zeroing it. Remove these to allow preinitialization
of fields work in vn_stat(). This is needed to get birthtime initialized
correctly.
Submitted by: Jaakko Heinonen <jh saunalahti fi>
Discussed on: freebsd-fs
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=183215
Diffstat (limited to 'sys/gnu/fs/xfs/FreeBSD')
-rw-r--r-- | sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c b/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c index 0ef2e91ab65d..8296552f3e85 100644 --- a/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c +++ b/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c @@ -240,7 +240,6 @@ _xfs_getattr( /* extract the xfs vnode from the private data */ //xfs_vnode_t *xvp = (xfs_vnode_t *)vp->v_data; - VATTR_NULL(vap); memset(&va,0,sizeof(xfs_vattr_t)); va.va_mask = XFS_AT_STAT|XFS_AT_GENCOUNT|XFS_AT_XFLAGS; |