]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
tests: fix LBA format calculation
authorDennis Maisenbacher <dennis.maisenbacher@wdc.com>
Thu, 13 Feb 2025 08:23:46 +0000 (08:23 +0000)
committerDaniel Wagner <wagi@monom.org>
Fri, 14 Feb 2025 17:08:49 +0000 (18:08 +0100)
commit4116a5a7a7d5a03e572c74f06880b32df5a2e13f
treec0e0cfc79f13b1c25a605eb011cfc7e394c337c8
parent1d65c635b372fe563086ec70eda0b0d23f36578e
tests: fix LBA format calculation

We assumed that the test drive is always formatted with lbaf 0 which
leads to miscalculation of the maximum available size on namespace
creation.
Now we query the LBA size according to the selected `self.flbas`.

Signed-off-by: Dennis Maisenbacher <dennis.maisenbacher@wdc.com>
tests/nvme_create_max_ns_test.py
tests/nvme_test.py