Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add specification for SerpentOS .stone files #665

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions archive/stone.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
meta:
id: stone
title: SerpentOS Stone
license: Zlib
endian: be
doc-ref: https://github.com/serpent-os/libmoss/blob/841a6d67/source/moss/format/binary/archive_header.d
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