1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/device
Alasdair Kergon b849de1d18 Fix the device cache to cope reasonably safely with device name changes.
This should be a rare occurrence so the aim is to recover if it's
straightforward to do so, otherwise just to abort the operation.
If people *knowingly* change device names, they should always run vgscan
afterwards.

A few bytes of memory gets leaked inside a pool each time an alias
has to be discarded - it's not worth restructuring the code to reuse it.

More of LVM2 needs updating to pass device objects (or uuids) about
instead of pathnames so that resolution of pathname->object only happens
once per operation.

dev_cache_get() should now always return the *current* device at the path given

dev_name_confirmed() replaces dev_name() whenever it's important to
know that name for the device is still current (ie when opening it).
If the cache doesn't know a current name, the function fails.

dev_open() guarantees that the file descriptor returned is for the dev_t
of the device structure it was passed.
2002-01-24 23:16:19 +00:00
..
dev-cache.c Fix the device cache to cope reasonably safely with device name changes. 2002-01-24 23:16:19 +00:00
dev-cache.h o Filter for the dev cache that takes values from config file: 2001-10-19 18:20:37 +00:00
dev-io.c Fix the device cache to cope reasonably safely with device name changes. 2002-01-24 23:16:19 +00:00
device.c o pvcreate 2001-10-12 10:32:06 +00:00
device.h Fix the device cache to cope reasonably safely with device name changes. 2002-01-24 23:16:19 +00:00