oll3 / nbd-async

Block device driver in userspace!
https://crates.io/crates/nbd-async
MIT License
8 stars 7 forks source link

Add support for flush and trim #8

Closed DarkKirb closed 3 years ago

DarkKirb commented 3 years ago

This patch adds support for the (newer) flush and trim commands that NBD supports. They do nothing by default.

trim is useful for storage optimization, to both increase IO speed (SSDs) and decrease disk usage (userspace thin provisioning)