Skip to content

Conversation

@fslongjin
Copy link
Member

@fslongjin fslongjin commented Dec 10, 2025

  • Adjusted the link count for directories to ensure it starts at 2, accounting for the self-reference and parent directory link.
  • Updated the logic for incrementing and decrementing link counts when creating and deleting directories.
  • Enhanced the dynamic calculation of directory link counts in the VFS layer to ensure accuracy when metadata is unreliable.

This change improves the consistency of link count management across different filesystem implementations.

…M filesystems

- Adjusted the link count for directories to ensure it starts at 2, accounting for the self-reference and parent directory link.
- Updated the logic for incrementing and decrementing link counts when creating and deleting directories.
- Enhanced the dynamic calculation of directory link counts in the VFS layer to ensure accuracy when metadata is unreliable.

This change improves the consistency of link count management across different filesystem implementations.

Signed-off-by: longjin <[email protected]>
@github-actions github-actions bot added the Bug fix A bug is fixed in this pull request label Dec 10, 2025
@fslongjin fslongjin changed the title fix(filesystem): update directory link count management in FAT and RA… fix(filesystem): update directory link count management in FAT and RAM filesystems Dec 10, 2025
@fslongjin fslongjin merged commit fc322fb into DragonOS-Community:master Dec 10, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug fix A bug is fixed in this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant