HomeFreeBSD

Initialize va_rdev to NODEV and va_fsid to VNOVAL before the

Description

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

Details

Provenance
kibAuthored on Sep 20 2008, 7:48 PM
Parents
rG86dacdfe2b2e: Initialize va_flags and va_filerev properly in VOP_GETATTR(). Don't
Branches
Unknown
Tags
Unknown

Event Timeline