Skip to content

classifier: Fix directory rule to match within correct filesystem - #1838

Merged
robertbaldyga merged 1 commit into
Open-CAS:masterfrom
robertbaldyga:classifier-dir-superblock
Nov 5, 2026
Merged

robertbaldyga merged 1 commit into
Open-CAS:masterfrom
robertbaldyga:classifier-dir-superblock

Conversation

@robertbaldyga

Copy link
Copy Markdown
Member

Inode numbers are unique only within a filesystem, so i_ino alone matches directories on other filesystems. Add i_sb that tracks superblock pointer together with inode number, so that mountpoint on the path of classification rule does not lead to misclassification.

Inode numbers are unique only within a filesystem, so i_ino alone
matches directories on other filesystems. Add i_sb that tracks
superblock pointer together with inode number, so that mountpoint
on the path of classification rule does not lead to misclassification.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
@robertbaldyga
robertbaldyga force-pushed the classifier-dir-superblock branch from f1348a1 to 834fd6b Compare November 5, 2026 15:44
@robertbaldyga
robertbaldyga merged commit 734d732 into Open-CAS:master Nov 5, 2026
5 checks passed
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