[LU-13435] "lfs mirror delete --mirror-id" argument has no max value Created: 08/Apr/20  Updated: 05/Jan/23

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: Upstream
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Kevin Baillergeau Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: CEA, FLR

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

 Description   

"lfs mirror delete --mirror-id" should not allow mirror-id greater than 65535 as it is stored in __u16.

[root@vm4 flr]# lfs mirror delete --mirror-id 65535 foo 
error lfs mirror delete: file 'foo' does not contain mirror with id 65535

[root@vm4 flr]# lfs mirror delete --mirror-id 65537 foo
error lfs mirror delete: file 'foo' does not contain mirror with id 1

I think it also applies to any "lfs mirror" command that uses --mirror-id



 Comments   
Comment by Gerrit Updater [ 12/May/20 ]

Dominique Martinet (dominique.martinet@cea.fr) uploaded a new patch: https://review.whamcloud.com/38577
Subject: LU-13435 utils: Add max value to --mirror-id
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a334a8c5177bae218338b60184f1da53809d06e9

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