]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: net_id - for ccw bus, shorten the identifier and stip leading zeros 2481/head
authorDimitri John Ledkov <xnox@ubuntu.com>
Fri, 29 Jan 2016 16:54:30 +0000 (17:54 +0100)
committerDimitri John Ledkov <xnox@ubuntu.com>
Fri, 29 Jan 2016 16:54:30 +0000 (17:54 +0100)
commit0037a669ac9a2bbedccdb2f483111351e8ff4659
tree7a4054d614b337ff32effbc4d77517307b32b5e7
parenta5a5f03382ba7733670d7d226ce75f98dd64e554
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.
src/udev/udev-builtin-net_id.c