Skip to content

netpleb/nbdublk-flake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

libnbd + ublk (nbdublk) via Nix flake

This flake builds libnbd from nixpkgs and enables ublk support so you get the nbdublk tool, using a packaged ublksrv (from an overlay).

Requirements

  • Nix with flakes enabled
  • A Linux kernel (>6.0) with ublk support (for actually using ublk devices)
    • sudo modprobe ublk_dev

Build

Build libnbd (with nbdublk enabled):

nix build .#libnbd-with-ublk

nbdublk will be in:

./result/bin/nbdublk

Shell usage

libnbd + ublk CLI

The ublk command used in the nbdublk examples comes from ublksrv, so include it too:

nix shell .#libnbd-with-ublk .#ublksrv

Example

modprob ublk_dev
nbdublk --help
ublk list

For the full usage examples, see the nbdublk(1) man page:

About

libnbd with ublk support (nbdublk) as a nix flake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages