9 releases

0.2.4 Nov 19, 2024
0.2.3 Sep 23, 2024
0.2.1 Aug 30, 2024
0.2.0 Mar 9, 2024
0.1.1 Aug 26, 2023

#314 in Unix APIs

Download history 32/week @ 2024-08-16 47/week @ 2024-08-23 216/week @ 2024-08-30 25/week @ 2024-09-06 40/week @ 2024-09-13 334/week @ 2024-09-20 93/week @ 2024-09-27 39/week @ 2024-10-04 38/week @ 2024-10-11 20/week @ 2024-10-18 3/week @ 2024-10-25 7/week @ 2024-11-01 3/week @ 2024-11-08 139/week @ 2024-11-15 23/week @ 2024-11-22 4/week @ 2024-11-29

170 downloads per month

GPL-2.0-or-later

76KB
2K SLoC

rublk

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

Rust ublk generic target implementation, which depends on libublk^1, which talks with linux ublk driver^2 for building and exposing standard linux block device, meantime all target IO logic is moved to userspace.

Linux kernel 6.0 starts to support ublk covered by config option of CONFIG_BLK_DEV_UBLK.

Documentations

ublk doc links

ublk introduction

Quick Start

cargo install rublk

modprobe ublk_drv

rublk help

$ 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 add help

$ 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

License

This project is licensed under GPL-2.0.

Contributing

Any kinds of contributions are welcome!

Dependencies

~17–49MB
~809K SLoC