Commandset to help users of dm-writeboost to analyze and report bugs. Written in Rust.
Rustup is the best way to install Rust toolset.
https://github.com/rust-lang-nursery/rustup.rs
Then cargo install --path writeboost-cli to install writeboost-cli.
(For older version, cargo install --path wbtools)
https://www.youtube.com/watch?v=QAXbmr2Rf30
Check if the log was written successfully.
writeboost-cli check /dev/cache --segid=1checks the segment ID 1. Returns 0 on success.writeboost-cli check /dev/cache -achecks all the segments. Returns 0 on success.
Create a WB device (wrapping dmsetup create)
writeboost-cli create wbdev /dev/backing /dev/cache --reformatcreates a WB device with reformattingwriteboost-cli create wbdev /dev/backing /dev/cache --reformat --read_cache_threshold=4 --writeback_threshold=70creates a WB device with some settings
Dump the data blocks corresponding to the specified metablock ID.
writeboost-cli dump /dev/cache 126dumps the data block of metablock index 126
Look into the metadata in the cache device.
writeboost-cli meta /dev/cache 0dumps the superblock metadata (ID 0 is special)writeboost-cli meta /dev/cache 1dumps the metadata of segment ID 1
Remove a WB device
writeboost-cli remove wbdevremoves a WB device after flushing data in RAM buffer and then writing back all cache blocks. This is the way Dmirty Smirnov's writeboost script suggests. (Recommended)writeboost-cli remove wbdev --nowritebackremove a WB device without writing back all cache blocks.
Pretty-print the status line.
dmsetup status wbdev | writeboost-cli status
Akira Hayakawa (ruby.wktk@gmail.com)