diff options
author | Dimitri John Ledkov <xnox@ubuntu.com> | 2016-01-29 17:54:30 +0100 |
---|---|---|
committer | Dimitri John Ledkov <xnox@ubuntu.com> | 2016-01-29 17:54:30 +0100 |
commit | 0037a669ac9a2bbedccdb2f483111351e8ff4659 (patch) | |
tree | 7a4054d614b337ff32effbc4d77517307b32b5e7 /src/udev/udev-builtin.c | |
parent | a5a5f03382ba7733670d7d226ce75f98dd64e554 (diff) |
udev: net_id - for ccw bus, shorten the identifier and stip leading zeros
The commmon case default qeth link is enccw0.0.0600 is rather long.
Thus strip leading zeros (which doesn't make the bus_id unstable),
similar to the PCI domain case.
Also 'ccw' is redundant on S/390, as there aren't really other buses
available which could have qeth driver interfaces. Not sure why this
code is even compiled on non-s390[x] platforms. But to distinguish from
e.g. MAC stable names shorten the suffix to just 'c'.
Thus enccw0.0.0600 becomes enc600.
Diffstat (limited to 'src/udev/udev-builtin.c')
0 files changed, 0 insertions, 0 deletions