Project

General

Profile

Bug #14482

rbd:rbd-nbd does not have an argument check for nbds_max

Added by Kongming Wu over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
01/23/2016
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

1.The value of argument nbds_max can be set to -1, which logically can not be understood. I think 0 is the boundary.
2.Setting nbds_max = abd, output error info. But the command will be executed successfully.

Associated revisions

Revision 39e7fcdb (diff)
Added by Kongming Wu over 3 years ago

rbd: Add an argument-check for nbds_max in rbd-nbd

Fixes: #14482

This modification adds several checks to the argument of nbds_max in the module of rbd-nbd. The value of nbds_max is strictly limited to non-negative integer now.

Signed-off-by: Kongming Wu <>

History

#1 Updated by Jason Dillaman over 3 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF