diff options
| author | Jeff Carr <[email protected]> | 2025-08-17 17:02:29 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-17 22:57:06 -0500 |
| commit | 25c604aeee7cd821d27dfd4c09bf0626e9312535 (patch) | |
| tree | e7b875d4077ffb7fa265c7a1bd8fefafbc9d0235 /block.proto | |
| parent | bd5b16d8755bc9e5f0dc90162bc4724d319c725e (diff) | |
protobuf file for block devices
Diffstat (limited to 'block.proto')
| -rw-r--r-- | block.proto | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/block.proto b/block.proto new file mode 100644 index 0000000..e29e9c0 --- /dev/null +++ b/block.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +package main; + +message Block { + string name = 1; // `autogenpb:sort` `autogenpb:unique` + uint32 major = 2; + uint32 minor = 3; + uint64 size_bytes = 4; + bool removable = 5; + bool read_only = 6; + string type = 7; // e.g., "disk", "part", "rom", "loop" + repeated string mountpoints = 8; +} + +message Blocks { // `autogenpb:marshal` `autogenpb:mutex` + string uuid = 1; // `autogenpb:uuid:abe10848-cf2b-4440-b5a8-0aaa2ce50aad` + string version = 2; // `autogenpb:version:v0.0.1` + repeated Block Blocks = 3; // THIS MUST BE Block and then Blocks +} |
