rootfs: fix the error handling of the snapshotter.Commit#5196
rootfs: fix the error handling of the snapshotter.Commit#5196estesp merged 1 commit intocontainerd:masterfrom
Conversation
|
Hi @Iceber. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Build succeeded.
|
|
/ok-to-test |
There was a problem hiding this comment.
I prefer to use named return var, like
func createInitLayer(ctx context.Context, parent, initName string, initFn func(string) error, snapshotter snapshots.Snapshotter, mounter Mounter) (_ string, retErr error) {Signed-off-by: Iceber Gu <[email protected]>
|
Build succeeded.
|
If the
snapshotter.Commitreturn an error, then thesnapshotter.Removeshould also be called.containerd/rootfs/init.go
Lines 112 to 117 in 6b410ba
containerd/rootfs/init.go
Lines 88 to 96 in e231b95
@dmcgowan @dnephin PTAL. Thanks