disks: get: add osdid-list return parameter
It is possible to run multiple OSD daemons on one disk. The new 'osdid-list' parameter returns an array of all OSD IDs found on the disk. The old 'osdid' parameter is kept for compatibility. We might want to deprecate / remove it in the future. Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
29ca4abaee
commit
e1348a2792
@ -124,7 +124,11 @@ __PACKAGE__->register_method ({
|
||||
gpt => { type => 'boolean' },
|
||||
mounted => { type => 'boolean' },
|
||||
size => { type => 'integer'},
|
||||
osdid => { type => 'integer'},
|
||||
osdid => { type => 'integer'}, # TODO: deprecate / remove in PVE 9?
|
||||
'osdid-list' => {
|
||||
type => 'array',
|
||||
items => { type => 'integer' },
|
||||
},
|
||||
vendor => { type => 'string', optional => 1 },
|
||||
model => { type => 'string', optional => 1 },
|
||||
serial => { type => 'string', optional => 1 },
|
||||
|
||||
Reference in New Issue
Block a user