Commit 21a2ad8
authored
Check the parent snapshot to identify the writable type (#17)
**What this PR does / why we need it**:
**What**
Changes getWritableType() to look at the *parent* snapshot's filesystem
instead of the child's, which doesn't even exist at this point.
**Why**
When creating sandboxes/containers from overlaybd pause images, the
first creation works correctly but subsequent attempts fall back to
overlayfs mode instead of using overlaybd.
The getWritableType() function was checking the child snapshot's labels
and filesystem for overlaybd metadata, but the child snapshot doesn't
have a label, and the child snapshot directories don't exist yet at this
point.
**Please check the following list**:
- [ ] Does the affected code have corresponding tests, e.g. unit test,
E2E test?
- [ ] Does this change require a documentation update?
- [ ] Does this introduce breaking changes that would require an
announcement or bumping the major version?
- [ ] Do all new files have an appropriate license header?
<!-- If this is a security issue, please do not discuss on GitHub.
Please report any suspected or confirmed security issues directly to
https://github.com/containerd/accelerated-container-image/blob/main/MAINTAINERS.
-->1 parent 6dd3055 commit 21a2ad8
1 file changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
416 | 417 | | |
417 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
418 | 436 | | |
419 | 437 | | |
420 | 438 | | |
| |||
0 commit comments