[LU-11696] "lfs getsom" returns "24" (sizeof lustre_som_attr) to userspace Created: 23/Nov/18  Updated: 19/Mar/19  Resolved: 04/Jan/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.12.0
Fix Version/s: Lustre 2.13.0, Lustre 2.12.1

Type: Bug Priority: Minor
Reporter: Andreas Dilger Assignee: Qian Yingjin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-9538 Size on MDT with guarantee of eventua... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

The "lfs getsom" command always returns "24" to userspace because "rc = 24" (sizeof (struct lustre_som_attrs)) after fetching the xattr from the kernel. If the lfs_getsom()->lgetxattr() call returns a positive value, then this is the size of the xattr < sizeof(*attrs) and rc should be set to 0 in that case.



 Comments   
Comment by Gerrit Updater [ 26/Nov/18 ]

Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/33714
Subject: LU-11696 utils: "lfs getsom" returns "24" to userspace
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: de0b4f7ab16d89874f401c522374e6ccc237b58f

Comment by Gerrit Updater [ 04/Jan/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33714/
Subject: LU-11696 utils: "lfs getsom" returns "24" to userspace
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 9209e0e9428b6671c6bab9f901e04fdf5b29abc5

Comment by Peter Jones [ 04/Jan/19 ]

Landed for 2.13

Comment by Gerrit Updater [ 25/Feb/19 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34308
Subject: LU-11696 utils: "lfs getsom" returns "24" to userspace
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: d14bc634579a707c862acb015cf2e61678f54d33

Comment by Gerrit Updater [ 19/Mar/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34308/
Subject: LU-11696 utils: "lfs getsom" returns "24" to userspace
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: b426c169590b3401ecad2ea744164812ee1ef934

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