]> sourceware.org Git - lvm2.git/commit
dev-cache: move global variables into cmd struct 1359579497
authorDavid Teigland <teigland@redhat.com>
Tue, 2 Jul 2024 21:43:34 +0000 (16:43 -0500)
committerDavid Teigland <teigland@redhat.com>
Wed, 3 Jul 2024 16:52:32 +0000 (11:52 -0500)
commit77be3250d926263db0d4daa83a4102078601bac2
tree896e2d26b37544053960d462ecfc18420da31d0c
parent57e9083c90a206ec312c4b6ffdd1dabe3824d785
dev-cache: move global variables into cmd struct

The cmd struct is now required in many more functions, and
it's added as a function arg for most direct dev-cache function
calls.  The cmd struct is added to struct device (dev->cmd) so
that it can be accessed in many other cases where dev-cache
functions are being called from places where getting the cmd
struct is too difficult.
22 files changed:
lib/activate/dev_manager.c
lib/cache/lvmcache.c
lib/cache/lvmcache.h
lib/commands/toolcontext.c
lib/commands/toolcontext.h
lib/device/dev-cache.c
lib/device/dev-cache.h
lib/device/dev-mpath.c
lib/device/device.h
lib/device/device_id.c
lib/filters/filter-mpath.c
lib/filters/filter-regex.c
lib/label/hints.c
lib/label/label.c
lib/locking/locking.c
lib/metadata/metadata.c
tools/lvmdevices.c
tools/lvmdiskscan.c
tools/pvck.c
tools/pvscan.c
tools/toollib.c
tools/vgimportclone.c
This page took 0.044218 seconds and 5 git commands to generate.