⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module database

Module database 

Source
Expand description

Persistent package database

Stores package state to VFS-backed storage at /var/pkg/db. Uses a simple binary format for serialization so the package registry survives reboots.

§Binary Format

The database file is a sequence of records. Each record is:

name_len:    u16 (little-endian)
name:        [u8; name_len]
version_len: u16 (little-endian)
version:     [u8; version_len]
installed_at: u64 (little-endian)
files_count: u32 (little-endian)
size_bytes:  u64 (little-endian)
dep_count:   u16 (little-endian)
for each dep:
    dep_len: u16 (little-endian)
    dep:     [u8; dep_len]

Structs§

ConfigRecord
Record of a tracked configuration file
DbPackageRecord
A single record in the package database
PackageDatabase
On-disk package database