-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Mounting block devices as virtio devices doesn't work correctly #1316
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
Labels
Priority: High
Indicates than an issue or pull request should be resolved ahead of issues or pull requests labelled
Type: Bug
Indicates an unexpected problem or unintended behavior
Comments
Hi @kzys, thank you for the report and investigation! This looks like a bug, and will be addressed as soon as possible. However, if in the meantime you have a fix ready, PRs are welcome! |
kzys
added a commit
to kzys/firecracker
that referenced
this issue
Nov 5, 2019
When a virtio device is backed by a block device, the actual size of the block device file doesn't represent the size as a virtio device. Fixes firecracker-microvm#1316
8 tasks
kzys
added a commit
to kzys/firecracker
that referenced
this issue
Nov 5, 2019
When a virtio device is backed by a block device, the actual size of the block device file doesn't represent the size as a virtio device. Fixes firecracker-microvm#1316 Signed-off-by: Kazuyoshi Kato <[email protected]>
kzys
added a commit
to kzys/firecracker
that referenced
this issue
Nov 6, 2019
Signed-off-by: Kazuyoshi Kato <[email protected]>
kzys
added a commit
to kzys/firecracker
that referenced
this issue
Nov 6, 2019
When a virtio device is backed by a block device, the actual size of the block device file doesn't represent the size as a virtio device. Fixes firecracker-microvm#1316 Signed-off-by: Kazuyoshi Kato <[email protected]>
kzys
added a commit
to kzys/firecracker
that referenced
this issue
Nov 12, 2019
When a virtio device is backed by a block device, the actual size of the block device file doesn't represent the size as a virtio device. Fixes firecracker-microvm#1316 Signed-off-by: Kazuyoshi Kato <[email protected]>
kzys
added a commit
to kzys/firecracker
that referenced
this issue
Nov 12, 2019
When a virtio device is backed by a block device, the actual size of the block device file doesn't represent the size as a virtio device. Fixes firecracker-microvm#1316 Signed-off-by: Kazuyoshi Kato <[email protected]>
kzys
added a commit
to kzys/firecracker
that referenced
this issue
Nov 14, 2019
When a virtio device is backed by a block device, the actual size of the block device file doesn't represent the size as a virtio device. Fixes firecracker-microvm#1316 Signed-off-by: Kazuyoshi Kato <[email protected]>
mi-yu
pushed a commit
to mi-yu/firecracker
that referenced
this issue
Dec 3, 2019
When a virtio device is backed by a block device, the actual size of the block device file doesn't represent the size as a virtio device. Fixes firecracker-microvm#1316 Signed-off-by: Kazuyoshi Kato <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Priority: High
Indicates than an issue or pull request should be resolved ahead of issues or pull requests labelled
Type: Bug
Indicates an unexpected problem or unintended behavior
Uh oh!
There was an error while loading. Please reload this page.
While investigating firecracker-microvm/firecracker-containerd#253, we have found a small gap regarding virtio block device support on Firecracker.
Currently Firecracker is using
std::fs::metadata()
to check the size of a virtio block device, which ultimately calls stat() on Unix.However firecracker-containerd is using a loopback device as the backing file for a virtio block device. On a lookback device, the size from stat() is always zero.
Can Firecracker support our usecase by inspecting the size of the file more deeply? You probably can use BLKGETSIZE64 ioctl.
Thanks,
The text was updated successfully, but these errors were encountered: