Files
fluxengine/lib/vfs/vfs.proto
2022-08-28 16:37:21 +02:00

41 lines
900 B
Protocol Buffer

syntax = "proto2";
import "lib/common.proto";
message AcornDfsProto {
enum Flavour {
UNDEFINED = 0;
ACORN_DFS = 1;
}
optional Flavour flavour = 1 [default = ACORN_DFS, (help) = "which flavour of DFS to implement"];
}
message Brother120FsProto {
}
message FatFsProto {
}
message CpmFsProto {
message Location {
optional uint32 track = 1 [(help) = "track number"];
optional uint32 side = 2 [(help) = "side number"];
optional uint32 sector = 3 [(help) = "sector ID"];
}
optional Location filesystem_start = 1 [(help) = "position of the start of the filesystem"];
optional int32 block_size = 2 [(help) = "allocation block size"];
optional int32 dir_entries = 3 [(help) = "number of entries in the directory"];
}
message FilesystemProto {
oneof filesystem {
AcornDfsProto acorndfs = 1;
Brother120FsProto brother120 = 2;
FatFsProto fatfs = 3;
CpmFsProto cpmfs = 4;
}
}