1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 11:55:55 +03:00
lvm2/lib
Peter Rajnoha d090d6574e device: also cache device size
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.
2016-01-22 14:13:34 +01:00
..
activate cleanup: add missing prototype 2016-01-21 13:29:08 +01:00
cache doc: change fsf address 2016-01-21 12:11:37 +01:00
cache_segtype doc: change fsf address 2016-01-21 12:11:37 +01:00
commands doc: change fsf address 2016-01-21 12:11:37 +01:00
config doc: change fsf address 2016-01-21 12:11:37 +01:00
datastruct doc: change fsf address 2016-01-21 12:11:37 +01:00
device device: also cache device size 2016-01-22 14:13:34 +01:00
display doc: change fsf address 2016-01-21 12:11:37 +01:00
error doc: change fsf address 2016-01-21 12:11:37 +01:00
filters doc: change fsf address 2016-01-21 12:11:37 +01:00
format1 doc: change fsf address 2016-01-21 12:11:37 +01:00
format_pool doc: change fsf address 2016-01-21 12:11:37 +01:00
format_text doc: change fsf address 2016-01-21 12:11:37 +01:00
freeseg doc: change fsf address 2016-01-21 12:11:37 +01:00
label doc: change fsf address 2016-01-21 12:11:37 +01:00
locking lvmlockd: remove noisy log_debug 2016-01-21 14:37:15 -06:00
log doc: change fsf address 2016-01-21 12:11:37 +01:00
lvmpolld doc: change fsf address 2016-01-21 12:11:37 +01:00
metadata doc: change fsf address 2016-01-21 12:11:37 +01:00
mirror doc: change fsf address 2016-01-21 12:11:37 +01:00
misc doc: change fsf address 2016-01-21 12:11:37 +01:00
mm doc: change fsf address 2016-01-21 12:11:37 +01:00
properties doc: change fsf address 2016-01-21 12:11:37 +01:00
raid doc: change fsf address 2016-01-21 12:11:37 +01:00
replicator doc: change fsf address 2016-01-21 12:11:37 +01:00
report doc: change fsf address 2016-01-21 12:11:37 +01:00
snapshot doc: change fsf address 2016-01-21 12:11:37 +01:00
striped doc: change fsf address 2016-01-21 12:11:37 +01:00
thin doc: change fsf address 2016-01-21 12:11:37 +01:00
unknown doc: change fsf address 2016-01-21 12:11:37 +01:00
uuid doc: change fsf address 2016-01-21 12:11:37 +01:00
zero doc: change fsf address 2016-01-21 12:11:37 +01:00
Makefile.in doc: change fsf address 2016-01-21 12:11:37 +01:00