summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-09-20 19:50:52 +0000
committerkib <kib@FreeBSD.org>2008-09-20 19:50:52 +0000
commita127656dea4eaa9f2125b73268a5749b25cbbbbd (patch)
tree115bb5b75428770843d9c2637d376cde0d96084e /sys/fs/devfs
parentef4f1dc9c70af87320df47334a3d15a86cad6994 (diff)
downloadFreeBSD-src-a127656dea4eaa9f2125b73268a5749b25cbbbbd.zip
FreeBSD-src-a127656dea4eaa9f2125b73268a5749b25cbbbbd.tar.gz
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
Diffstat (limited to 'sys/fs/devfs')
-rw-r--r--sys/fs/devfs/devfs_vnops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index d56e99b..94ea0dd 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -499,8 +499,6 @@ devfs_getattr(struct vop_getattr_args *ap)
KASSERT(de != NULL,
("Null dir dirent in devfs_getattr vp=%p", vp));
}
- bzero((caddr_t) vap, sizeof(*vap));
- vattr_null(vap);
vap->va_uid = de->de_uid;
vap->va_gid = de->de_gid;
vap->va_mode = de->de_mode;
@@ -543,6 +541,7 @@ devfs_getattr(struct vop_getattr_args *ap)
}
vap->va_gen = 0;
vap->va_flags = 0;
+ vap->va_filerev = 0;
vap->va_nlink = de->de_links;
vap->va_fileid = de->de_inode;
OpenPOWER on IntegriCloud