Open-CAS / open-cas-linux

Open CAS Linux
https://open-cas.com
BSD 3-Clause "New" or "Revised" License
224 stars 82 forks source link

[casadm] Better error messages for operations blocked by mounted cores #1515

Closed Deixx closed 4 weeks ago

Deixx commented 2 months ago

Description

Currently error messages that operation cannot be performed are printed inside a function that checks if core devices are mounted. Those messages should be printed by the caller of the aforementioned function. When checking mounts for cache or core with multiple mounted partitions the error message should contain all the relevant mounted devices. Now it shows only the first device that blocks cache stop or core remove.

Reason

Better code structure and more informative error message.