OST object projid and quota reset (LU-15520)

[LU-16988] mirror extend by FID does not set projid Created: 27/Jul/23  Updated: 22/Sep/23  Resolved: 06/Sep/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0

Type: Technical task Priority: Minor
Reporter: Andreas Dilger Assignee: Hongchao Zhang
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
Related
is related to LU-16265 automatically set projid on objects w... Open
is related to LU-15520 OST object projid and quota reset Open
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

If "lfs mirror extend" is run on a file using its FID, it will create a volatile file without an assigned projid on the OST objects, which will result in project quota leakage. When it is run by path and the volatile file is created in the parent directory, then the projid is inherited from the parent.

The layout merge used to join the volatile file layout to the original file (or layout swap in case of migrate by FID) should set the projid on the volatile file before it is merged, so that its project quota is accounted properly.



 Comments   
Comment by Gerrit Updater [ 03/Aug/23 ]

"Hongchao Zhang <hongchao@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51859
Subject: LU-16988 mdd: update projid when merging layout
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: ab5a69fcc465643b56d1df02a187d2e1f854849d

Comment by Gerrit Updater [ 06/Sep/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51859/
Subject: LU-16988 mdd: update projid when merging layout
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: bb2525b0ddf9190ae340552fa615833b735b61d3

Comment by Peter Jones [ 06/Sep/23 ]

Landed for 2.16

Generated at Sat Feb 10 03:31:40 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.