]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blkzone: make alignment check for zone size generic
authorPankaj Raghav <p.raghav@samsung.com>
Fri, 22 Apr 2022 15:02:03 +0000 (17:02 +0200)
committerPankaj Raghav <p.raghav@samsung.com>
Thu, 4 Aug 2022 16:22:49 +0000 (18:22 +0200)
commitba676a2761523eb9859b18f670f5944f44bd2bee
tree180984c108472fd21f4619882bb19fde2ec863df
parent8ac75e31de0ece74515e98e0b22e54cc0a9808bd
blkzone: make alignment check for zone size generic

The zone offset and length alignment checks are based on a power-of-2(po2)
zone size assumption.

Make that calculation generic as there are ongoing efforts[1] to support
zoned devices with non-po2 zone sizes.

[1]
https://lore.kernel.org/all/20220803094801.177490-1-p.raghav@samsung.com/
Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
sys-utils/blkzone.c