mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
b849de1d18
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. |
||
---|---|---|
.. | ||
dev-cache.c | ||
dev-cache.h | ||
dev-io.c | ||
device.c | ||
device.h |