Better error recovery in devmapper

Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
This commit is contained in:
Maksym Pavlenko
2019-07-30 15:17:17 -07:00
parent eabb536b1f
commit 878a3205cd
4 changed files with 157 additions and 42 deletions

View File

@@ -56,6 +56,8 @@ const (
Removing
// Removed means that device successfully removed but not yet deleted from meta store
Removed
// Faulty means that the device is errored and the snapshotter failed to rollback it
Faulty
)
func (s DeviceState) String() string {
@@ -84,6 +86,8 @@ func (s DeviceState) String() string {
return "Removing"
case Removed:
return "Removed"
case Faulty:
return "Faulty"
default:
return fmt.Sprintf("unknown %d", s)
}