fixup/block.proto

21 lines
873 B
Protocol Buffer

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
}