Skip to content

Commit 092c57b

Browse files
authored
Merge pull request #332 from sipsma/drivemount-rl-ro
Support rate-limiters and read-only for drive mounts.
2 parents 8427ac6 + 76b3fbe commit 092c57b

11 files changed

+640
-419
lines changed

proto/types.pb.go

Lines changed: 80 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/types.proto

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,15 @@ message FirecrackerDriveMount {
144144
// within the VM (i.e. ["rw", "noatime"]). Defaults to none if not specified.
145145
repeated string Options = 4;
146146

147-
// TODO support for ratelimiters and read-only drives (issue #296)
147+
// (Optional) RateLimiter configuration that will be applied to the
148+
// backing-drive for the VM's rootfs
149+
FirecrackerRateLimiter RateLimiter = 5;
150+
151+
// (Optional) If set to true, IsWritable results in the backing file for the
152+
// drive being opened as read-write by the Firecracker VMM on the host, allowing
153+
// writes to the image from within the guest. Defaults to false, in which case
154+
// the block device in the VM will be read-only.
155+
bool IsWritable = 6;
148156
}
149157

150158
// Message to specify an IO rate limiter with bytes/s and ops/s limits

0 commit comments

Comments
 (0)