fix(host): remove cephfs dir (#21299)

This commit is contained in:
屈轩
2024-09-26 09:47:34 +08:00
committed by GitHub
parent 318d679bff
commit e850764f31
+2 -2
View File
@@ -58,8 +58,8 @@ func (h cephFS) Unmount(pod IPodInfo, ctrId string, vm *hostapi.ContainerVolumeM
if err := container_storage.Unmount(dir); err != nil {
return errors.Wrapf(err, "unmount %s", dir)
}
if out, err := procutils.NewRemoteCommandAsFarAsPossible("rm", "-f", dir).Output(); err != nil {
return errors.Wrapf(err, "rm -f %s: %s", dir, string(out))
if out, err := procutils.NewRemoteCommandAsFarAsPossible("rm", "-fd", dir).Output(); err != nil {
return errors.Wrapf(err, "rm -fd %s: %s", dir, string(out))
}
return nil
}