1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/device
David Teigland 4eb04c8c05 devices: fix dev_name assumptions
dev_name(dev) returns "[unknown]" if there are no names
on dev->aliases.  It's meant mainly for log messages.

Many places assume a valid path name is returned, and
use it directly.  A caller that wants to use the path
from dev_name() must first check if the dev has any
paths with dm_list_empty(&dev->aliases).
2022-02-24 17:22:04 -06: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 devices: drop incorrect paths from aliases list 2022-02-24 17:22:03 -06:00
dev-cache.h devices: drop incorrect paths from aliases list 2022-02-24 17:22:03 -06: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 devices: rework libudev usage 2021-07-13 11:11:23 -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 devices: rework libudev usage 2021-07-13 11:11:23 -05:00
dev-mpath.c devices: exclude multipath components based on matching wwid 2021-11-18 17:41:00 -06:00
dev-swap.c devices: rework libudev usage 2021-07-13 11:11:23 -05:00
dev-type.c devices: fix dev_name assumptions 2022-02-24 17:22:04 -06:00
dev-type.h devices: exclude multipath components based on matching wwid 2021-11-18 17:41:00 -06:00
device_id.c devices: fix dev_name assumptions 2022-02-24 17:22:04 -06:00
device_id.h lvmdevices: make deldev work for missing device 2022-02-03 16:56:03 -06:00
device-types.h devices: recognise rbd (ceph rados block device) 2021-12-13 13:32:06 -06:00
device.h devices: drop incorrect paths from aliases list 2022-02-24 17:22:03 -06:00
online.c online files: fix vgname check 2021-11-12 11:52:36 -06:00
online.h pvs_online: include devname in pvid files 2021-11-09 11:26:26 -06:00