Compare commits
2 Commits
3a324f52ad
...
e0c2e69539
Author | SHA1 | Date |
---|---|---|
![]() |
e0c2e69539 | |
![]() |
fd1803144c |
|
@ -51,12 +51,11 @@ int udev_get_whole_disk(sd_device *dev, sd_device **ret_device, const char **ret
|
||||||
return log_device_debug_errno(dev, r, "Failed to get sysname: %m");
|
return log_device_debug_errno(dev, r, "Failed to get sysname: %m");
|
||||||
|
|
||||||
/* Exclude the following devices:
|
/* Exclude the following devices:
|
||||||
* For "dm-", see the comment added by e918a1b5a94f270186dca59156354acd2a596494.
|
|
||||||
* For "md", see the commit message of 2e5b17d01347d3c3118be2b8ad63d20415dbb1f0,
|
* For "md", see the commit message of 2e5b17d01347d3c3118be2b8ad63d20415dbb1f0,
|
||||||
* but not sure the assumption is still valid even when partitions are created on the md
|
* but not sure the assumption is still valid even when partitions are created on the md
|
||||||
* devices, surprisingly which seems to be possible, see PR #22973.
|
* devices, surprisingly which seems to be possible, see PR #22973.
|
||||||
* For "drbd", see the commit message of fee854ee8ccde0cd28e0f925dea18cce35f3993d. */
|
* For "drbd", see the commit message of fee854ee8ccde0cd28e0f925dea18cce35f3993d. */
|
||||||
if (STARTSWITH_SET(val, "dm-", "md", "drbd"))
|
if (STARTSWITH_SET(val, "md", "drbd"))
|
||||||
goto irrelevant;
|
goto irrelevant;
|
||||||
|
|
||||||
r = block_device_get_whole_disk(dev, &dev);
|
r = block_device_get_whole_disk(dev, &dev);
|
||||||
|
|
Loading…
Reference in New Issue