Commit 190a06f
committed
nvmeof: validate unknown parameters in ControllerModifyVolume
Add validation to reject unknown mutable parameters in the NVMe-oF
ControllerModifyVolume implementation. Previously, unknown parameters
were silently ignored, which could lead to confusion when users
specify incorrect parameter names.
The validation now checks that only known parameters (QoS parameters:
rwIosPerSecond, rwMbytesPerSecond, rMbytesPerSecond, wMbytesPerSecond,
and host parameter: allowHostNQNs) are provided, returning an
InvalidArgument error for any unknown parameters.
Assisted-by: AskBob <askbob@ibm.com>
Signed-off-by: Niels de Vos <ndevos@ibm.com>1 parent 23f9dda commit 190a06f
1 file changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
373 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
374 | 391 | | |
375 | 392 | | |
376 | 393 | | |
| |||
491 | 508 | | |
492 | 509 | | |
493 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
494 | 526 | | |
495 | 527 | | |
496 | 528 | | |
| |||
0 commit comments