[LU-12947] Project quotas: support of symlinks? Created: 07/Nov/19  Updated: 24/Apr/20  Resolved: 24/Apr/20

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

Type: Bug Priority: Minor
Reporter: Stephane Thiell Assignee: Wang Shilong (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Environment:

CentOS 7.6, ldiskfs


Issue Links:
Related
is related to LU-11872 Request for option not to follow syml... Resolved
Severity: 4
Rank (Obsolete): 9223372036854775807

 Description   

With Lustre 2.12.3 and project quotas enabled, we can't set a project ID on symlink. It would be useful to have symlink support to make project quotas more robust. Related to LU-11872 but that didn't fix the symlink support.

#  lfs project -p 351945 -s -r eulig
lfs: unable to get xattr for symlink 'eulig/projects/deepfluoro/wandb/run-20191106_123211-9o7biub9/train.py': Operation not supported


 Comments   
Comment by Andreas Dilger [ 07/Nov/19 ]

There is a second patch https://review.whamcloud.com/34447 "LU-11872 utils: add option to recreate symlink files" that has not yet landed. As of today there is no way to "open" a symlink to change the projid. What the above patch proposes is to recreate the symlink with the correct projid, and then rename it on top of the old one.

That should be atomic (i.e. no chance some user/app cannot find the symlink), and solves the issue of symlinks having the wrong projid.

Comment by Stephane Thiell [ 07/Nov/19 ]

Oh that sounds good, thanks for the pointer! It's nice that it can be done in an atomic way.

Also wanted to clarify that it's only a problem for already existing symlinks, as we confirmed that newly created symlinks in a directory (that has the inherit attribute set) are properly accounted for.

Comment by Andreas Dilger [ 24/Apr/20 ]

This is being addressed under LU-11872.

Generated at Sat Feb 10 02:57:02 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.