Skip to content

Commit 14c0062

Browse files
jackowfishimeoer
authored andcommitted
Make filesystem sync operation fatal on failure
Signed-off-by: Jack Decker <[email protected]>
1 parent d3bbc3e commit 14c0062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/nydusify/pkg/committer/commiter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func (cm *Committer) Commit(ctx context.Context, opt Opt) error {
235235
// and not yet visible in the overlay filesystem's upper directory
236236
logrus.Infof("syncing filesystem before commit")
237237
if err := cm.syncFilesystem(ctx, opt.ContainerID); err != nil {
238-
logrus.Warnf("failed to sync filesystem, continuing anyway: %v", err)
238+
return errors.Wrap(err, "failed to sync filesystem")
239239
}
240240

241241
if err := cm.pause(ctx, opt.ContainerID, commit); err != nil {

0 commit comments

Comments
 (0)