diff options
author | David Teigland <teigland@redhat.com> | 2022-02-22 15:03:11 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-02-24 15:37:53 -0600 |
commit | 07338325e552bb692f2422f42750e70c9d31152c (patch) | |
tree | 46016e2027141fa85b7e5aae58c1ce6c14bb41b3 /lib/writecache/writecache.c | |
parent | ac1f4bbbfd4c5f1387c3e0607f7d556409e7a4b4 (diff) | |
download | lvm2-dev-dct-devs3.tar.gz |
devices: fix name handlingdev-dct-devs3
- Fix cases where incorrect device paths were left
on the dev->aliases list. Leaving incorrect paths
on dev->aliases could result in using the wrong device.
- Fix a widespread incorrect assumption that dev_name()
always returns a valid path (or NULL). dev_name()
returns "[unknown]" when there are no paths to a
device, and is mainly meant to be used in messages.
- Check for valid dev paths in cases that want to use
the from dev_name() for things other than a message.
Diffstat (limited to 'lib/writecache/writecache.c')
0 files changed, 0 insertions, 0 deletions