Recent changes (master)
The following changes since commit 2ea393df3256e44398558c264f035f8db7656b08:
Merge branch 'github-actions' of https://github.com/sitsofe/fio (2021-12-10 11:08:26 -0700)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 9ffe433d729101a34d9709030d7d4dd2444347ef:
t/zbd: Avoid inappropriate blkzone command call in zone_cap_bs (2021-12-14 06:48:14 -0700)
----------------------------------------------------------------
Damien Le Moal (11):
fio: Improve documentation of ignore_zone_limits option
zbd: define local functions as static
zbd: move and cleanup code
zbd: remove is_zone_open() helper
zbd: introduce zbd_zone_align_file_sizes() helper
zbd: fix code style issues
zbd: simplify zbd_close_zone()
zbd: simplify zbd_open_zone()
zbd: rename zbd_zone_idx() and zbd_zone_nr()
zbd: rename get_zone()
zbd: introduce zbd_offset_to_zone() helper
Niklas Cassel (2):
ci: temporarily remove linux-i686-gcc build
ci: use macos 11 in virtual environment
Shin'ichiro Kawasaki (1):
t/zbd: Avoid inappropriate blkzone command call in zone_cap_bs
.github/workflows/ci.yml | 6 +- HOWTO | 6 + fio.1 | 6 +- t/zbd/functions | 6 +- zbd.c | 963 +++++++++++++++++++++++++---------------------- 5 files changed, 532 insertions(+), 455 deletions(-)
---
Diff of recent changes:
.github/workflows/ci.yml +1 -5
@@ -14,7 +14,6 @@ jobs: - linux-gcc - linux-clang - macos - - linux-i686-gcc include: - build: linux-gcc os: ubuntu-20.04
@@ -23,10 +22,7 @@ jobs: os: ubuntu-20.04 cc: clang - build: macos - os: macos-10.15 - - build: linux-i686-gcc - os: ubuntu-20.04 - arch: i686 + os: macos-11 env: CI_TARGET_ARCH: ${{ matrix.arch }}
HOWTO +6 -0
@@ -1063,6 +1063,12 @@ Target file/device Limit on the number of simultaneously opened zones per single thread/process. +.. option:: ignore_zone_limits=bool + If this option is used, fio will ignore the maximum number of open + zones limit of the zoned block device in use, thus allowing the + option :option:`max_open_zones` value to be larger than the device + reported limit. Default: false. + .. option:: zone_reset_threshold=float A number between zero and one that indicates the ratio of logical
fio.1 +3 -3
@@ -838,9 +838,9 @@ threads/processes. Limit on the number of simultaneously opened zones per single thread/process. .TP .BI ignore_zone_limits \fR=\fPbool -If this isn't set, fio will query the max open zones limit from the zoned block -device, and exit if the specified \fBmax_open_zones\fR value is larger than the -limit reported by the device. Default: false. +If this option is used, fio will ignore the maximum number of open zones limit +of the zoned block device in use, thus allowing the option \fBmax_open_zones\fR +value to be larger than the device reported limit. Default: false. .TP .BI zone_reset_threshold \fR=\fPfloat A number between zero and one that indicates the ratio of logical blocks with
t/zbd/functions +4 -2
@@ -72,9 +72,11 @@ zone_cap_bs() { local sed_str='s/.*len \([0-9A-Za-z]*\), cap \([0-9A-Za-z]*\).*/\1 \2/p' local cap bs="$zone_size" - # When blkzone is not available or blkzone does not report capacity, + # When blkzone command is neither available nor relevant to the + # test device, or when blkzone command does not report capacity, # assume that zone capacity is same as zone size for all zones. - if [ -z "${blkzone}" ] || ! blkzone_reports_capacity "${dev}"; then + if [ -z "${blkzone}" ] || [ -z "$is_zbd" ] || [ -c "$dev" ] || + ! blkzone_reports_capacity "${dev}"; then echo "$zone_size" return fi
zbd.c +518 -445
1,515 lines not on this page · raw message