Xattr objects, which are created before upgrade to feature@project_quota, get account-ed in the wrong project id after the upgrade #16355
Labels
Type: Defect
Incorrect behavior (e.g. crash, hang)
System information
Describe the problem you're observing
zpool upgraded with 'feature@project_quota' needs re-layout of SA's to fix the SA_ZPL_PROJID at SA_PROJID_OFFSET (128). Its necessary for the correct accounting of object usage against its projid. Old object (created before upgrade) when gets a projid assigned, its SA gets re-layout via sa_add_projid(). If object has xattr dir, SA of xattr dir also gets re-layout. But SA re-layout of xattr objects inside a xattr dir is not done.
Describe how to reproduce the problem
Create zpool with 'feature@project_quota' disabled
Create xattr objects
Upgrade feature@project_quota:
Configure project 111 on dir1
Check usage of Project 111
Project 111 should have a total of 4 objects account-ed (1 for dir1 ino 2, 1 for xattr dir ino 3 and 2 for xattr’s ino 128 and ino 4. But it's only accounting 2 in project 111 (1 for dir1 ino 2 and 1 for xattr dir ino 3). Xattr ino 128 and ino 4 are account-ed in the invalid projid 3.
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: