[systemd-devel] Question about the default value of NamePolicy=

Mantas Mikulėnas grawity at gmail.com
Wed Aug 1 17:36:58 UTC 2018


On Wed, Aug 1, 2018 at 7:18 PM Francis Moreau <francis.moro at gmail.com>
wrote:

> Hello,
>
> I have a question regarding the default value of NamePolicy= defined
> in 99-default.link.
>
> The value is "NamePolicy=kernel database onboard slot path"
>
> Could someone explain me why "onbard" is preferred over "slot" which
> is preferred over "path" ?
>

AFAIK, "onboard" and (hotplug) "slot" names are mutually exclusive, so
their relative ordering isn't that important... but if the firmware marks a
device as on-board *and* also provides a slot number, then it's more likely
that the slot# is garbage.

Both "onboard" and "slot" are preferred over "path" because they're shorter
and more descriptive (as long as the firmware provides correct values). The
path, being based on PCI bus addressing, doesn't say much to most people --
at best, it's just a stable identifier. (For example, my server's
integrated NIC port #1 is better named "eno1", not "enp3s0f0".)

-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180801/ec50affd/attachment.html>


More information about the systemd-devel mailing list