mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
d090d6574e
Add "size" and "size_seqno" to struct device to cache device's size and also to control its lifetime - the cached value is valid as long as the global _dev_size_seqno is equal to the device's size_seqno, otherwise we need to get the size again and cache the new value. This patch also adds new dev_size_seqno_inc() fn for the appropriate parts of the code to increment current global value of _dev_size_seqno and hence to cause all currently cached values for device sizes to be invalidated. The device size is now cached because we're planning to reuse this information for further checks and we want to avoid checking it more than necessary to save resources. |
||
---|---|---|
.. | ||
dev-cache.c | ||
dev-cache.h | ||
dev-dasd.c | ||
dev-ext-udev-constants.h | ||
dev-ext.c | ||
dev-io.c | ||
dev-luks.c | ||
dev-md.c | ||
dev-swap.c | ||
dev-type.c | ||
dev-type.h | ||
device-types.h | ||
device.h |