[LU-12944] Migration corrupts xattrs Created: 06/Nov/19  Updated: 04/Jan/20  Resolved: 14/Dec/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.13.0
Fix Version/s: Lustre 2.14.0, Lustre 2.12.4

Type: Bug Priority: Critical
Reporter: Sebastien Buisson Assignee: Sebastien Buisson
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When migrating files and directories from one MDT to another, if they happen to have xattrs set, then their values will be corrupted once migration is complete.

More precisely, the size used to store the xattr value on the migrated file/dir is taken from previous xattrs set, so it might be wrong.



 Comments   
Comment by Gerrit Updater [ 06/Nov/19 ]

Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/36689
Subject: LU-12944 obd: realloc lu_buf when previous size is too big
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2df91b52d2472bcf27a3ee0556bfa18a2146d8b4

Comment by Gerrit Updater [ 14/Dec/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36689/
Subject: LU-12944 mdd: pass correct xattr size to lower layers
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: e5e584fd386a2229809bc64d440c3255cf50c1bd

Comment by Peter Jones [ 14/Dec/19 ]

Landed for 2.14

Comment by Gerrit Updater [ 16/Dec/19 ]

Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/37030
Subject: LU-12944 mdd: pass correct xattr size to lower layers
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 394abc43b93d7a1fdc5c1773161a1096998d5226

Comment by Gerrit Updater [ 03/Jan/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37030/
Subject: LU-12944 mdd: pass correct xattr size to lower layers
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 8fcddbec97715c24cfabe897f9b702df9e35aaef

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