Skip to content

Commit

Permalink
Check if null_blk supports zoned devices
Browse files Browse the repository at this point in the history
  • Loading branch information
kdave committed Jun 23, 2021
1 parent 20103ad commit bb2a704
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nullb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ function _error() {
exit 1
}

function _warn() {
echo "WARNING: $@"
}

function _msg() {
echo "INFO: $@"
}
Expand All @@ -53,6 +57,9 @@ function _check_setup() {
if ! grep -q configfs /proc/filesystems; then
_error "configfs not mounted"
fi
if ! grep -q zoned "$SYSFS/features"; then
_warn "null_blk module does not support zoned devices"
fi
}

function _check_cd() {
Expand Down

0 comments on commit bb2a704

Please sign in to comment.