mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
Add more event types to trigger fstrim
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
parent
8dd089ae93
commit
d326c1b2e6
@ -144,6 +144,18 @@ RECONNECT:
|
||||
} else if event.Action == "destroy" && event.Type == "volume" {
|
||||
log.Printf("A volume has been removed: will run the action at least once more")
|
||||
action.AtLeastOnceMore()
|
||||
} else if event.Action == "prune" && event.Type == "image" {
|
||||
log.Printf("Dangling images have been removed: will run the action at least once more")
|
||||
action.AtLeastOnceMore()
|
||||
} else if event.Action == "prune" && event.Type == "container" {
|
||||
log.Printf("Stopped containers have been removed: will run the action at least once more")
|
||||
action.AtLeastOnceMore()
|
||||
} else if event.Action == "prune" && event.Type == "volume" {
|
||||
log.Printf("Unused volumes have been removed: will run the action at least once more")
|
||||
action.AtLeastOnceMore()
|
||||
} else if event.Action == "prune" && event.Type == "builder" {
|
||||
log.Printf("Dangling build cache has been removed: will run the action at least once more")
|
||||
action.AtLeastOnceMore()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user