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…
Add table
Reference in a new issue