summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-09-20 19:46:45 +0000
committerkib <kib@FreeBSD.org>2008-09-20 19:46:45 +0000
commit81d455e702a0846e60a6a9b8419b26740c510752 (patch)
treee507302b4dc7a5cad58e30c582aa41fa9949dc2f /sys/gnu
parentc6232cabbebca4c41ec2707ec6848c87507d2929 (diff)
downloadFreeBSD-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/gnu')
-rw-r--r--sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c b/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c
index f09e9ce..0ef2e91 100644
--- a/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c
+++ b/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c
@@ -273,15 +273,9 @@ _xfs_getattr(
/*
* Fields with no direct equivalent in XFS
- * leave initialized by VATTR_NULL
*/
-#if 0
vap->va_filerev = 0;
- vap->va_birthtime = va.va_ctime;
- vap->va_vaflags = 0;
vap->va_flags = 0;
- vap->va_spare = 0;
-#endif
return (0);
}
OpenPOWER on IntegriCloud