mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Close sparse files when done
This commit is contained in:
parent
7682ec04cd
commit
bbc9fc7907
1 changed files with 1 additions and 0 deletions
|
@ -120,6 +120,7 @@ func (devices *DeviceSet) ensureImage(name string, size int64) (string, error) {
|
|||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
if err = file.Truncate(size); err != nil {
|
||||
return "", err
|
||||
|
|
Loading…
Reference in a new issue