[LU-4922] Fix cfs_str2mask to better deal with garbage input Created: 17/Apr/14  Updated: 30/May/23

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.1.6, Lustre 2.6.0, Lustre 2.5.1, Lustre 2.4.3, Lustre 2.15.3
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Oleg Drokin Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: easy

Issue Links:
Related
is related to LU-9859 libcfs simplification Open
Severity: 3
Rank (Obsolete): 13606

 Description   

Currently if you feed garbage input into cfs_str2mask, for example empty string, it would reset the value to min_mask where as I imagine it should just do nothing.
Prime example of this is changelog_mask, I guess.

So this needs to be fixed.
Also once done, sanity test 133g should be updated to no longer exclude that file.



 Comments   
Comment by Minh Diep [ 30/May/23 ]

[ 9461.895489] Lustre: 545572:0:(libcfs_string.c:112:cfs_str2mask()) unknown mask ''.

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