5个版本

0.2.0 2024年3月9日
0.1.5 2024年1月18日
0.1.3 2023年11月11日
0.1.2 2023年10月30日
0.1.1 2023年8月26日

#347Unix API

每月 23 次下载

GPL-2.0 许可证

77KB
2K SLoC

rublk

[许可证: GPL v2] (https://github.com/ming1/rublk/blob/master/COPYING)

Rust ublk通用目标实现,依赖于 libublk^1,它与linux ublk驱动程序^2 通信,用于构建和公开标准Linux块设备,同时所有目标IO逻辑都移动到用户空间。

Linux内核6.0开始支持由CONFIG_BLK_DEV_UBLK配置选项覆盖的ublk。

文档

ublk文档链接

ublk介绍

快速开始

cargo install rublk

modprobe ublk_drv

rublk帮助

$ rublk help
Usage: rublk <COMMAND>

Commands:
  add       Adds ublk target
  del       Deletes ublk target
  list      Lists ublk targets
  recover   Recover ublk targets
  features  Get supported features from ublk driver, supported since v6.5
  help      Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

rublk添加帮助

$ rublk add help
Adds ublk target

Usage: rublk add <COMMAND>

Commands:
  loop   Add loop target
  null   Add null target
  zoned  Add zoned target, supported since v6.6
  qcow2  Add qcow2 target
  help   Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

许可证

此项目使用GPL-2.0许可证。

贡献

欢迎所有类型的贡献!

依赖项

~18–54MB
~839K SLoC