Initialize va_rdev to NODEV and va_fsid to VNOVAL before the
VOP_GETATTR() call in vn_stat(). Thus if a file system doesn't initialize those fields in VOP_GETATTR() they will have a sane default value. Submitted by: Jaakko Heinonen <jh saunalahti fi> Discussed on: freebsd-fs MFC after: 1 month
This commit is contained in:
parent
86dacdfe2b
commit
0fbbf2ea56
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183213
@ -711,6 +711,8 @@ vn_stat(vp, sb, active_cred, file_cred, td)
|
||||
*/
|
||||
vap->va_birthtime.tv_sec = -1;
|
||||
vap->va_birthtime.tv_nsec = 0;
|
||||
vap->va_fsid = VNOVAL;
|
||||
vap->va_rdev = NODEV;
|
||||
|
||||
error = VOP_GETATTR(vp, vap, active_cred);
|
||||
if (error)
|
||||
|
Loading…
Reference in New Issue
Block a user