[LU-1678] Panic when a file created with O_LOV_DELAY_CREAT is opened by fid Created: 26/Jul/12  Updated: 05/Aug/20  Resolved: 06/Sep/12

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.3.0, Lustre 2.4.0

Type: Bug Priority: Minor
Reporter: CEA Assignee: Zhenyu Xu
Resolution: Fixed Votes: 0
Labels: None

Attachments: File openbyfid-O_LOV_DELAY.patch.repro    
Severity: 3
Rank (Obsolete): 4463

 Description   

To reproduce:

  • create a file without a lov (O_LOV_DELAY_CREATE)
  • open it through .lustre/fid/...... path

Attached is a sanity.sh patch which introduces a new test to reproduce the bug
I will create a gerrit with the reproducer



 Comments   
Comment by jacques-charles lafoucriere [ 26/Jul/12 ]

Reproducer can be found at http://review.whamcloud.com/3477

Comment by Peter Jones [ 26/Jul/12 ]

Bobijam

Could you please look into this one?

Thanks

Peter

Comment by Zhenyu Xu [ 26/Jul/12 ]

.lustre does not contain LOV EA data, when access file with O_LOV_DELAY_CREAT under it, the supposed action is to get its parent's LOV data and create its own LOV data, so we need forbid such action when we access it through .lustre path.

patch tracking at http://review.whamcloud.com/3483, it includes your sanity test case patch, thank you for that.

patch description

mdd: don't create LOV EA by going thru .lustre path

When a file is created with O_LOV_DELAY_CREAT, we should not create
its LOV EA data by going through .lustre path.

Add a test to sanity.sh open by fid test suite (test_154).

Generated at Sat Feb 10 01:18:44 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.