VOP_STAT: Provide a default value for va_gen
Some filesystems, e.g., pseudofs and the NFSv3 client, do not provide one. Reviewed by: kib Reported by: KMSAN Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30091
This commit is contained in:
parent
cdfcfc607a
commit
2b2d77e720
@ -1500,6 +1500,7 @@ vop_stdstat(struct vop_stat_args *a)
|
||||
vap->va_birthtime.tv_sec = -1;
|
||||
vap->va_birthtime.tv_nsec = 0;
|
||||
vap->va_fsid = VNOVAL;
|
||||
vap->va_gen = 0;
|
||||
vap->va_rdev = NODEV;
|
||||
|
||||
error = VOP_GETATTR(vp, vap, a->a_active_cred);
|
||||
|
Loading…
Reference in New Issue
Block a user