containerd / accelerated-container-image

A production-ready remote container image format (overlaybd) and snapshotter based on block-device.
Apache License 2.0
409 stars 75 forks source link

fix error when set timeout for device after mount #202

Closed liulanzheng closed 1 year ago

liulanzheng commented 1 year ago

What this PR does / why we need it: fixed an error when setting timeout failed after a successful mount, attachAndMountBlockDevice returns an error without umount, which cause the device destroyed but mount point remained.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

Please check the following list: