]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common: introduce zone_capacity() to return a zone capacity
authorNaohiro Aota <naohiro.aota@wdc.com>
Wed, 5 Oct 2022 05:46:43 +0000 (14:46 +0900)
committerZorro Lang <zlang@kernel.org>
Sat, 8 Oct 2022 11:20:25 +0000 (19:20 +0800)
commit18b44df21afcac7fd27b6c0f44923de3eadda852
tree77b9eb43512aa3977f597647e526c02b73f83534
parentb57788fbe2cd10193318941f502bb3e5c4bc087f
common: introduce zone_capacity() to return a zone capacity

Introduce _zone_capacity() to return a zone capacity of the given address
in the given device (optional). Move _filter_blkzone_report() for it, and
rewrite btrfs/237 with it.

Reviewed-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/filter
common/zoned [new file with mode: 0644]
tests/btrfs/237