sync data first before stopping

This commit is contained in:
chrislu
2022-02-16 09:11:34 -08:00
parent 118d0e01a8
commit a129bda7d9
3 changed files with 28 additions and 0 deletions

View File

@@ -317,6 +317,16 @@ func (l *DiskLocation) VolumesLen() int {
return len(l.volumes)
}
func (l *DiskLocation) SetStopping() {
l.volumesLock.Lock()
for _, v := range l.volumes {
v.SetStopping()
}
l.volumesLock.Unlock()
return
}
func (l *DiskLocation) Close() {
l.volumesLock.Lock()
for _, v := range l.volumes {