From f288b0927a63a63b0424bc1c019edce964f8a013 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Thu, 20 Apr 2023 16:05:44 +0200 Subject: [PATCH 1/2] add specification for SerpentOS .stone files --- archive/stone.ksy | 69 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 archive/stone.ksy diff --git a/archive/stone.ksy b/archive/stone.ksy new file mode 100644 index 000000000..3943ea541 --- /dev/null +++ b/archive/stone.ksy @@ -0,0 +1,69 @@ +meta: + id: stone + title: SerpentOS Stone + license: Zlib + endian: be +doc-ref: +seq: + - id: header + type: header + size: 32 + - id: payloads + type: payload + repeat: expr + repeat-expr: header.num_payloads +types: + header: + seq: + - id: signature + contents: [0, 0x6d, 0x6f, 0x73] + - id: num_payloads + type: u2 + - id: integrity_check + contents: [0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7] + - id: file_type + type: u1 + enum: file_types + - id: version + type: u4 + payload: + -webide-representation: "{type}" + seq: + - id: len_data + type: u8 + - id: len_usable_data + type: u8 + # use len_uncompressed instead? + - id: xxhash3_64 + size: 8 + - id: num_records + type: u4 + - id: payload_version + type: u2 + - id: type + type: u1 + enum: payload_type + - id: compression + type: u1 + enum: compression + - id: data + size: len_data +enums: + file_types: + 0: unknown + 1: binary + 2: delta + 3: repository + 4: build_manifest + compression: + 0: unknown + 1: no_compression + 2: zstd + payload_type: + 0: unknown + 1: meta + 2: content + 3: layout + 4: index + 5: attributes + 6: dumb From 8b895d54237c5571642f8a2b7facd1d6d0daf149 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Fri, 21 Apr 2023 13:49:49 +0200 Subject: [PATCH 2/2] Update archive/stone.ksy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Petr Pučil --- archive/stone.ksy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/stone.ksy b/archive/stone.ksy index 3943ea541..2a6f5dc6a 100644 --- a/archive/stone.ksy +++ b/archive/stone.ksy @@ -3,7 +3,7 @@ meta: title: SerpentOS Stone license: Zlib endian: be -doc-ref: +doc-ref: https://github.com/serpent-os/libmoss/blob/841a6d67/source/moss/format/binary/archive_header.d seq: - id: header type: header