Skip to content

Refactor rmdir hook#574

Open
JoukoVirtanen wants to merge 2 commits intomainfrom
jv-refactor-rmdir
Open

Refactor rmdir hook#574
JoukoVirtanen wants to merge 2 commits intomainfrom
jv-refactor-rmdir

Conversation

@JoukoVirtanen
Copy link
Copy Markdown
Contributor

@JoukoVirtanen JoukoVirtanen commented Apr 29, 2026

Description

Calling is_monitored when removing a directory from inode tracking is not needed since the inode will be in the map if it is monitored and not in the map if it is not monitored. A similar refactor does not work for unlinking files since the output of is_monitored is used to set args.monitored in that case and we need to know how it is monitored rather than if it is monitored or not in that case.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly (No documentation change is needed).

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

CI is sufficient.

@JoukoVirtanen JoukoVirtanen changed the title Jv refactor rmdir Refactor rmdir May 5, 2026
@JoukoVirtanen JoukoVirtanen marked this pull request as ready for review May 5, 2026 21:12
@JoukoVirtanen JoukoVirtanen requested a review from a team as a code owner May 5, 2026 21:12
@JoukoVirtanen JoukoVirtanen changed the title Refactor rmdir Refactor rmdir hook May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant