Page MenuHomeFreeBSD

fusefs: fix a cached attributes bug during directory rename
ClosedPublic

Authored by asomers on Feb 22 2022, 5:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 3, 6:03 AM
Unknown Object (File)
Tue, Dec 31, 8:46 PM
Unknown Object (File)
Fri, Dec 20, 5:29 AM
Unknown Object (File)
Nov 21 2024, 5:59 PM
Unknown Object (File)
Nov 5 2024, 8:06 PM
Unknown Object (File)
Oct 18 2024, 10:10 AM
Unknown Object (File)
Oct 17 2024, 6:46 PM
Unknown Object (File)
Oct 7 2024, 1:27 AM
Subscribers

Details

Summary

When renaming a directory into a different parent directory, invalidate
the cached attributes of the new parent. Otherwise, stat will show the
wrong st_nlink value.

MFC after: 1 week

Test Plan

test case added

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable