zfs: zvol_strategy() warn: unsigned 'off' is never less than zero
zfs - Zettabyte File System
warning from smatch:
/code/illumos-gate/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/smatch: ../../common/fs/zfs/zvol.c:1229 zvol_strategy() warn: unsigned 'off' is never less than zero.
Also OpenZFS commit:
zvol: unsigned off can not be less than zero Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com> Reviewed-by: Brian Behlendorf <email@example.com> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Toomas Soome <firstname.lastname@example.org> Closes #10867
Note that OpenZFS moved zvol code to OS specific files, this issue was carried to freebsd version, linux version has different implementation.
Testing done: build/install/boot.
Updated by Electric Monk almost 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 712669c9fa9278704a4ccefe1d96acaf29397d36 Author: Toomas Soome <email@example.com> Date: 2020-09-08T04:43:30.000Z 13103 zfs: zvol_strategy() warn: unsigned 'off' is never less than zero Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Reviewed by: Igor Kozhukhov <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>