| commit | a6da17176a102f5755fd7289448ca5a9486d8a20 | [log] [tgz] |
|---|---|---|
| author | Jan Schär <jan@monogon.tech> | Wed Aug 21 15:12:11 2024 +0200 |
| committer | Jan Schär <jan@monogon.tech> | Tue Sep 10 14:50:21 2024 +0000 |
| tree | 1142b5acecc39da71fdc107b34e17933bd1935e1 | |
| parent | 6120f38e1a10a1389f9413209ea6b6f23be56258 [diff] |
osbase/blockdev: add tests, fix minor issues Add a lot of bounds checks which should make BlockDev safer to use. Fix a bug in the ReadWriteSeeker.Seek function with io.SeekEnd; the offset should be added to, not subtracted from the size. Add the Sync() function to the BlockDev interface. Change-Id: I247095b3dbc6410064844b4ac7c6208d88a7abcd Reviewed-on: https://review.monogon.dev/c/monogon/+/3338 Tested-by: Jenkins CI Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later! In the meantime, join us on Matrix (#monogon-os-community:matrix.org) or Discord.
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm (if you want to run tests).Our docs assume that Bazelisk is available as bazel on your PATH.
Refer to SETUP.md for detailed instructions.
The source code lives in //metropolis (Metropolis is the codename of Monogon OS).
See the //metropolis/README.md for a developer quick start guide, or see the Monogon OS Handbook for user documentation.