Merge pull request #3298 from jterry75/sync_tar2ext4_write
Forcibly sync writes on lcow layer.vhd after write
This commit is contained in:
commit
0e7a3c9e51
@ -152,7 +152,11 @@ func (s windowsLcowDiff) Apply(ctx context.Context, desc ocispec.Descriptor, mou
|
||||
|
||||
err = tar2ext4.Convert(rc, outFile, tar2ext4.ConvertWhiteout, tar2ext4.AppendVhdFooter, tar2ext4.MaximumDiskSize(maxLcowVhdSizeGB))
|
||||
if err != nil {
|
||||
return emptyDesc, errors.Wrapf(err, "failed to convert tar to ext4 vhd")
|
||||
return emptyDesc, errors.Wrapf(err, "failed to convert tar2ext4 vhd")
|
||||
}
|
||||
err = outFile.Sync()
|
||||
if err != nil {
|
||||
return emptyDesc, errors.Wrapf(err, "failed to sync tar2ext4 vhd to disk")
|
||||
}
|
||||
outFile.Close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user