[LU-15362] silent failure of layout component delete Created: 12/Dec/21  Updated: 06/Jan/22  Resolved: 06/Jan/22

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

Type: Bug Priority: Minor
Reporter: Li Xi Assignee: Li Xi
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When --component-id is missing in the command of delelting layout component, there will be no error message. Thus, the failure of the command could be easily ignored. And event the return value is checked, it is hard to understand why it failure.

A fix patch is coming.

Reproduce:

Before fix patch:

# lfs setstripe --component-del 2
# echo $?
22

After fix patch:

# lfs setstripe --component-del 2
lfs setstripe: neither flags nor component ID is specified
# echo $?
22


 Comments   
Comment by Li Xi [ 12/Dec/21 ]

Patch: https://review.whamcloud.com/45833

Comment by Gerrit Updater [ 06/Jan/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45833/
Subject: LU-15362 util: fix silent failure of component delete
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 99db47f23686103677ec91e3666666da8176acbb

Comment by Peter Jones [ 06/Jan/22 ]

Landed for 2.15

Generated at Sat Feb 10 03:17:40 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.