Please enable JavaScript.
Coggle requires JavaScript to display documents.
blk-snap - Coggle Diagram
blk-snap
review
terms
filter
per block device
blkfilter_operations
can loadable module
snapshot
temporary and released when backup is completed
simplify the backup algorithm
+and reduce consumption of system resources
universality snapshot for all block devices
linear reading block spaces
during snapshot, copy old data to difference storage for snapshot
note this change somewhere
continue to write to original block device after the copy is done
read from diff-storage for builing snapshot
snapshot image is one block device
SNAPSHOT_TAKE
create snapshot image block device
backup
how to use blk-snaphot for backup
snapshot is one block device
difference storage
store the data of the original block devices in the snapshot
one for all
struct tracker
CBT map
Change block
tracking allows to create incremental or differential backups
A change tracker map is created for each block device
One byte of this map corresponds to one block
references
lwn
https://lwn.net/Articles/914031/
bpf bio intercept
Long-lived kernel pointers in BPF
https://lwn.net/Articles/900749/
bpf_kptr_xchg
allow transfer kptr to map and back