libstorage / libstoragemgmt

A library for storage management
https://libstorage.github.io/libstoragemgmt-doc/
GNU Lesser General Public License v2.1
83 stars 32 forks source link

Smart array: Handle errored disk #435

Closed tasleson closed 3 years ago

tasleson commented 3 years ago

Resolves: https://github.com/libstorage/libstoragemgmt/issues/420

Note: This change is an adaptation of the one provided by Christophe Stoyanov. Specifically, when we cannot retrieve all the needed values we select default values of the proper type and domain eg.

id, disk_name -> string blk_size, blk_count -> unsigned integer rpm -> Disk.RPM_UNKNOWN

Signed-off-by: Tony Asleson tasleson@redhat.com

tasleson commented 3 years ago

@cstoyanov-scality Please review and test if you can.