-
Notifications
You must be signed in to change notification settings - Fork 42
Revert "virtio: Enable full disk caching" #379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This reverts commit 732de99. The goal is to run some experiments for containers/podman#27216 Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
WalkthroughUpdated the image attachment creation in pkg/vf/virtio.go: DiskStorageConfig.toVz now constructs DiskImageStorageDeviceAttachment directly with (config.ImagePath, config.ReadOnly), removing the previous WithCacheAndSync configuration that set fsync and cached modes. No function signatures or public APIs were changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Caller
participant DiskStorageConfig
participant VZ as VZ API
rect rgb(235, 245, 255)
note over DiskStorageConfig: Old flow (before)
Caller->>DiskStorageConfig: toVz()
DiskStorageConfig->>VZ: NewDiskImageStorageDeviceAttachment(imagePath, readOnly)\n.WithCacheAndSync(Fsync, Cached)
VZ-->>DiskStorageConfig: Attachment
DiskStorageConfig-->>Caller: Attachment
end
rect rgb(240, 255, 240)
note over DiskStorageConfig: New flow (after)
Caller->>DiskStorageConfig: toVz()
DiskStorageConfig->>VZ: NewDiskImageStorageDeviceAttachment(imagePath, readOnly)
VZ-->>DiskStorageConfig: Attachment (uses default cache/sync)
DiskStorageConfig-->>Caller: Attachment
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Can we disable this unhelpful poems? |
This reverts commit 732de99. The goal is to run some experiments for containers/podman#27216
Summary by CodeRabbit