HomeFreeBSD

Fix inode birthtime updating logic.

Description

Fix inode birthtime updating logic.

The birthtime field of struct vattr does not checked
for VNOVAL in case of ext2_setattr() and produce incorrect
inode birthtime values.

Found using pjdfstest:

pjdfstest/tests/utimensat/03.t

Reviewed by: pfg
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D29929

Details

Provenance
fsuAuthored on Feb 18 2021, 8:40 AM
Reviewer
pfg
Differential Revision
D29929: Fix inode birthtime updating.
Parents
rGfb53b42e36a9: virtio-modern: fix PCI common read/write functions on big endian targets
Branches
Unknown
Tags
Unknown