[LU-17245] lfs utils: misleading error messages when using multiple paths Created: 31/Oct/23  Updated: 03/Jan/24  Resolved: 03/Jan/24

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

Type: Bug Priority: Minor
Reporter: Thomas Bertschinger Assignee: Thomas Bertschinger
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-5170 lfs usability Open
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When using some lfs utils with multiple paths, and one of the paths has an error, it is possible to get misleading error messages:

$ mkdir /mnt/lustre/d 

$ lfs find /mnt/lustre/typo /mnt/lustre/d
/mnt/lustre/d
lt-lfs: failed for '/mnt/lustre/typo': Success
$ lfs getstripe /mnt/lustre/typo /mnt/lustre/d 
lt-lfs: getstripe for '/mnt/lustre/d' failed: No such file or directory
/mnt/lustre/d
stripe_count:  1 stripe_size:   4194304 pattern:       0 stripe_offset: -1

 



 Comments   
Comment by Gerrit Updater [ 02/Nov/23 ]

"Thomas Bertschinger <bertschinger@lanl.gov>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/52942
Subject: LU-17245 utils: fix lfs error messages with multiple paths
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 55e5cf20048731ddcd9456589419696aae20321c

Comment by Gerrit Updater [ 03/Jan/24 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/52942/
Subject: LU-17245 utils: fix lfs error messages with multiple paths
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 0d5f685d036c32f47cf837c1fb0894a41212898f

Comment by Peter Jones [ 03/Jan/24 ]

Landed for 2.16

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