summaryrefslogtreecommitdiff
path: root/block.proto
blob: e29e9c058372a1e6ff4538648f6d594a58596448 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
}