Skip to content

Commit 96548d9

Browse files
committed
Release v0.2
- 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>
1 parent f04eada commit 96548d9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ The script follows common command line interface when there are multiple
1515
subcommands provided by one script. Currently there is:
1616

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

5759
The null block device nodes and the actual name in sysfs can be different so

nullb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Simple management of null_blk devices, useful for zoned device testing
33
# Run 'nullb help' for how to use it
4-
Version="0.1"
4+
Version="0.2"
55

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

0 commit comments

Comments
 (0)