1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/device
David Teigland 79e67fc5e4 device id: add new types using values from vpd_pg83
The new device_id types are: wwid_naa, wwid_eui, wwid_t10.
The new types use the specific wwid type in their name.
lvm currently gets the values for these types by reading
the device's vpd_pg83 sysfs file (this could change in the
future if better methods become available for reading the
values.)

If a device is added to the devices file using one of these
types, prior versions of lvm will not recognize the types
and will be unable to use the devices.

When adding a new device, lvm continues to first use sys_wwid
from the sysfs wwid file.  If the device has no sysfs wwid file,
lvm now attempts to use one of the new types from vpd_pg83.

If a devices file entry with type sys_wwid does not match a
given device's sysfs wwid file, the sys_wwid value will also
be compared to that device's other wwids from its vpd_pg83 file.
If the kernel changes the wwid type reported from the sysfs
wwid file, e.g. from a device's t10 id to its naa id, then lvm
should still be able to match it correctly using the vpd_pg83
data which will include both ids.
2022-10-10 11:47:29 -05:00
..
bcache-utils.c cov: ensure data is not derefenced 2021-09-20 14:26:09 +02:00
bcache.c cov: mask some warning about leakage 2021-09-20 14:26:09 +02:00
bcache.h bcache: use indirection table for fd 2020-09-18 15:10:11 -05:00
dev-cache.c vgimportdevices: fix locking when creating devices file 2022-08-30 14:52:00 -05:00
dev-cache.h filter-mpath: get wwids from sysfs vpd_pg83 2022-06-08 15:06:01 -05:00
dev-dasd.c cov: mask uninitialized value 2021-03-10 01:34:27 +01:00
dev-ext-udev-constants.h dev-type: check for DEVLINKS udev db variable existence if udev_device_get_is_initialized fn is not present 2016-09-06 13:21:29 +02:00
dev-ext.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dev-io.c devices: drop incorrect paths from aliases list 2022-02-24 17:22:03 -06:00
dev-luks.c filter: remove unused EAGAIN case and flag 2022-04-06 12:51:34 -05:00
dev-lvm1-pool.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dev-md.c filter: remove unused EAGAIN case and flag 2022-04-06 12:51:34 -05:00
dev-mpath.c device id wwid adjustments 2022-10-10 11:47:29 -05:00
dev-swap.c filter: remove unused EAGAIN case and flag 2022-04-06 12:51:34 -05:00
dev-type.c blkid: fix BLKID_SUBLKS_FSINFO usage 2022-09-29 15:25:32 -05:00
dev-type.h lvresize: add new options and defaults for fs handling 2022-09-13 15:15:05 -05:00
device_id.c device id: add new types using values from vpd_pg83 2022-10-10 11:47:29 -05:00
device_id.h device id: add new types using values from vpd_pg83 2022-10-10 11:47:29 -05:00
device-types.h devices: recognise rbd (ceph rados block device) 2021-12-13 13:32:06 -06:00
device.h device id: add new types using values from vpd_pg83 2022-10-10 11:47:29 -05:00
filesystem.c lvresize: let env var set lvresize_fs_helper_path 2022-09-27 15:42:18 -05:00
filesystem.h lvresize: add new options and defaults for fs handling 2022-09-13 15:15:05 -05:00
online.c vgremove: remove online files in run dir 2022-09-14 14:19:29 -05:00
online.h vgremove: remove online files in run dir 2022-09-14 14:19:29 -05:00
parse_vpd.c device id wwid adjustments 2022-10-10 11:47:29 -05:00