Skip to content

Commit

Permalink
Release v0.2
Browse files Browse the repository at this point in the history
- support ZNS (zoned namespaces)
- setup: allow to pass module parameters
- create: new parameter '-c' for zone capacity
- list: print zone capacity
- help: new command with help

Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
kdave committed Oct 18, 2023
1 parent f04eada commit 96548d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ The script follows common command line interface when there are multiple
subcommands provided by one script. Currently there is:

* **nullb setup** - load required modules and mount configfs
* **nullb create [-s sizeMB] [-z zonesizeMB]** - create a new device with given sizes, allocating the first free indes, device is /dev/nullb$index
* **nullb create [-s sizeMB] [-z zonesizeMB] [-c zonecapacityMB]** - create a
new device with given sizes, allocating the first free indes, device is
/dev/nullb$index
* **nullb ls**
* **nullb list** - show table of created null\_blk devices, size and zone sizes
* **nullb rm NAME**
Expand Down Expand Up @@ -50,8 +52,8 @@ last line contains the name of the device node that's been created.
INFO: device nodes:
/dev/nullb0
INFO: created devices:
No Name Device Size Zone size On
0 nullb0 /dev/nullb0 2048M 256M 1
No Name Device Size Zone size Zone capacity On Mount
0 nullb0 /dev/nullb0 2048M 256M 200M 1 /mnt/test
```

The null block device nodes and the actual name in sysfs can be different so
Expand Down
2 changes: 1 addition & 1 deletion nullb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# Simple management of null_blk devices, useful for zoned device testing
# Run 'nullb help' for how to use it
Version="0.1"
Version="0.2"

function print_help() {
echo "Simple management of null_blk devices, useful for zoned device testing"
Expand Down

0 comments on commit 96548d9

Please sign in to comment.