Filesystem
Unauditedयह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।
The server stores only opaque, content-addressed ciphertext and never holds a key. Clients hold keys, so a client stores plaintext media, signed sidecars, and rebuildable caches. The on-disk layouts are part of the contract.
| Sub-doc | Concern |
|---|---|
| Server Filesystem | Blob store layout, Postgres index, required services, deletion |
| Client Filesystem | Library layout, local SQLite index, space recovery |
| Library Maintenance and Atomic Writes | Validation, scrubbing, repair, intra-library dedup, atomic writes |
Byte transfer is covered by Transfer Protocol; metadata sync by Sync.
Shared Principles
Section titled “Shared Principles”- Recovery-first. No database is needed to interpret canonical data. Client sidecars are the source of truth; the server’s PostgreSQL index holds only key-free facts (Server Filesystem — PostgreSQL: What the Server Knows) and is rebuildable from stored manifests.
- Atomic writes. Temp file + atomic rename on the same filesystem; never overwrite in place (Library Maintenance and Atomic Writes — Atomic Writes and Crash Recovery).
- Ephemeral derived data. Only originals and their canonical metadata are irreplaceable.
- 4 KiB alignment. Upload chunks are 4 KiB-aligned so the staging path (Upload — Staging) stays block-aligned.
- Content-addressing. Server blobs are named by their ciphertext hash (Cryptographic Primitives).
| Concern | Server | Client |
|---|---|---|
| Stored form | Opaque ciphertext blobs | Plaintext media + CBOR sidecars |
| Naming | Ciphertext hash | UUIDv7, date-bucketed |
| Index | PostgreSQL, authoritative, key-free | SQLite, migrated in place; partly rebuildable |
| Derived data | Client-generated encrypted blobs | Generated locally, evictable |
| Originals | Retained while referenced | Present only if synced locally |