improve docs
This commit is contained in:
parent
018d11bb84
commit
39a4df61d6
|
@ -1,15 +1,16 @@
|
||||||
//! This module implements the proxmox backup chunked data storage
|
//! This module implements the proxmox backup data storage
|
||||||
//!
|
//!
|
||||||
//! A chunk is simply defined as binary blob. We store them inside a
|
//! Proxmox backup splits large files into chunks, and stores them
|
||||||
//! `ChunkStore`, addressed by the SHA256 digest of the binary
|
//! deduplicated using a content addressable storage format.
|
||||||
//! blob. This technology is also known as content-addressable
|
|
||||||
//! storage.
|
|
||||||
//!
|
//!
|
||||||
//! We store larger files by splitting them into chunks. The resulting
|
//! A chunk is simply defined as binary blob, which is stored inside a
|
||||||
//! SHA256 digest list is stored as separate index file. The
|
//! `ChunkStore`, addressed by the SHA256 digest of the binary blob.
|
||||||
//! `DynamicIndex*` format is able to deal with dynamic chunk sizes,
|
//!
|
||||||
//! whereas the `FixedIndex*` format is an optimization to store a
|
//! Index files are used to reconstruct the original file. They
|
||||||
//! list of equal sized chunks.
|
//! basically contain a list of SHA256 checksums. The `DynamicIndex*`
|
||||||
|
//! format is able to deal with dynamic chunk sizes, whereas the
|
||||||
|
//! `FixedIndex*` format is an optimization to store a list of equal
|
||||||
|
//! sized chunks.
|
||||||
//!
|
//!
|
||||||
//! # ChunkStore Locking
|
//! # ChunkStore Locking
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -11,8 +11,10 @@ use super::*;
|
||||||
///
|
///
|
||||||
/// Data blobs store arbitrary binary data (< 128MB), and can be
|
/// Data blobs store arbitrary binary data (< 128MB), and can be
|
||||||
/// compressed and encrypted. A simply binary format is used to store
|
/// compressed and encrypted. A simply binary format is used to store
|
||||||
/// them on disk or transfer them over the network. Please use index
|
/// them on disk or transfer them over the network.
|
||||||
/// files to store large data files (".fidx" of ".didx").
|
///
|
||||||
|
/// Please use index files to store large data files (".fidx" of
|
||||||
|
/// ".didx").
|
||||||
///
|
///
|
||||||
pub struct DataBlob {
|
pub struct DataBlob {
|
||||||
raw_data: Vec<u8>, // tagged, compressed, encryped data
|
raw_data: Vec<u8>, // tagged, compressed, encryped data
|
||||||
|
|
Loading…
Reference in New Issue