-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zoned test needs v6.6 kernel, so far fedora doesn't support it yet. If v6.6 is supported, use blktests/zbd for covering test. Signed-off-by: Ming Lei <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
RUBLK=$1 | ||
BLKTESTS_TOP=$2 | ||
|
||
modprobe ublk_drv | ||
|
||
if `$RUBLK features | grep ZONED > /dev/null 2>&1`; then | ||
echo "kernel support ublk-zoned" | ||
|
||
$RUBLK del -a | ||
$RUBLK add zoned --zone-size=4 --size=512 > /dev/null 2>&1 | ||
sleep 2 | ||
|
||
if `$RUBLK list | grep zoned > /dev/null`; then | ||
echo "found ublk zoned" | ||
echo "TEST_DEVS=(/dev/ublkb0)" > $BLKTESTS_TOP/config | ||
else | ||
echo "TEST_DEVS=()" > $BLKTESTS_TOP/config | ||
echo "not found ublk zoned" | ||
fi | ||
else | ||
echo "kernel doesn't support ublkzoned" | ||
echo "TEST_DEVS=()" > $BLKTESTS_TOP/config | ||
fi |