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)
Tue, Nov 5, 8:06 PM
Unknown Object (File)
Fri, Oct 18, 10:10 AM
Unknown Object (File)
Thu, Oct 17, 6:46 PM
Unknown Object (File)
Oct 7 2024, 1:27 AM
Unknown Object (File)
Oct 3 2024, 9:38 PM
Unknown Object (File)
Oct 1 2024, 4:44 AM
Unknown Object (File)
Sep 30 2024, 2:48 PM
Unknown Object (File)
Sep 25 2024, 5:46 PM
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