]> sourceware.org Git - lvm2.git/commit
thin: use lv_status_thin and lv_status_thin_pool
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 26 Sep 2020 23:11:47 +0000 (01:11 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 29 Sep 2020 08:43:56 +0000 (10:43 +0200)
commit4de6f58085c533c79ce2e0db6cdeb6ed06fe05f8
treefd3880637513515a6b14af693715a257f6b64fdc
parent92c0e8c17f506b551c1b7c0a448d60279e7fdae6
thin: use lv_status_thin and lv_status_thin_pool

Introduce structures lv_status_thin_pool and
lv_status_thin  (pair to lv_status_cache, lv_status_vdo)

Convert lv_thin_percent() -> lv_thin_status()
and  lv_thin_pool_percent() + lv_thin_pool_transaction_id() ->
lv_thin_pool_status().

This way a function user can see not only percentages, but also
other important status info about thin-pool.

TODO:
This patch tries to not change too many other things,
but pool_below_threshold() now uses new thin-pool info to return
failure if thin-pool cannot be actually modified.
This should be handle separately in a better way.
lib/activate/activate.c
lib/activate/activate.h
lib/activate/dev_manager.c
lib/activate/dev_manager.h
lib/display/display.c
lib/metadata/lv_manip.c
lib/metadata/metadata-exported.h
lib/metadata/thin_manip.c
lib/report/properties.c
This page took 0.042299 seconds and 5 git commands to generate.