Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
correct logical error on removing mdraid member role rockstor#1294
Previously we only alterred the mdraid member flag to a disks role when it's fstype, as reported by scan_disks, indicated the need. However this was done within a conditional that precluded examining a 'None' fstype which is what scan_disks translates an empty string into. Hence we never updated a role db entry for a previous mdraid member once that member no longer returned an fstype. Resolved by moving the role label logic outside the previous conditional such that it now applies to all disks even if they return no fstype from scan_disks. Also added debug logging to help test this new arrangement.
- Loading branch information