b26fa1a2fbcfee7d03b0c8fd15ec3aa64ae70b9f |
|
10-Feb-2016 |
Daniel Mack <daniel@zonque.org> |
tree-wide: remove Emacs lines from all files
This should be handled fine now by .dir-locals.el, so need to carry that
stuff in every file. |
0037a669ac9a2bbedccdb2f483111351e8ff4659 |
|
29-Jan-2016 |
Dimitri John Ledkov <xnox@ubuntu.com> |
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. |
6c1e69f9456d022f14dd00737126cfa4d9cca10c |
|
25-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
udev: filter out non-sensically high onboard indexes reported by the kernel
Let's not accept onboard interface indexes, that are so high that they are obviously non-sensical.
Fixes: #2407 |
d054f0a4d451120c26494263fc4dc175bfd405b1 |
|
12-Jan-2016 |
Daniel Mack <daniel@zonque.org> |
tree-wide: use xsprintf() where applicable
Also add a coccinelle receipt to help with such transitions. |
3f65d73149cd0f64eb3fdb0c71f55f6c1133fefe |
|
07-Dec-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
udev: add emacs header line
Otherwise emacs wants to use 2-space indentation and other
attrocities. |
a8eaaee72a2f06e0fb64fb71de3b71ecba31dafb |
|
06-Nov-2015 |
Jan Engelhardt <jengelh@inai.de> |
doc: correct orthography, word forms and missing/extraneous words |
3ffd4af22052963e7a29431721ee204e634bea75 |
|
25-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out fd-related operations into fd-util.[ch]
There are more than enough to deserve their own .c file, hence move them
over. |
07630cea1f3a845c09309f197ac7c4f11edd3b62 |
|
24-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split our string related calls from util.[ch] into its own file string-util.[ch]
There are more than enough calls doing string manipulations to deserve
its own files, hence do something about it.
This patch also sorts the #include blocks of all files that needed to be
updated, according to the sorting suggestions from CODING_STYLE. Since
pretty much every file needs our string manipulation functions this
effectively means that most files have sorted #include blocks now.
Also touches a few unrelated include files. |
54683f0f9b97a8f88aaf4fbb45b4d729057b101c |
|
02-Sep-2015 |
Tom Gundersen <teg@jklm.no> |
udev: net_id - support predictable ifnames on virtio buses
Virtio buses are undeterministically enumerated, so we cannot use them as a basis
for deterministic naming (see bf81e792f3c0). However, we are guaranteed that there
is only ever one virtio bus for every parent device, so we can simply skip over
the virtio buses when naming the devices. |
3b64e4d4f40baac56148c7d333d6a0053358ec7a |
|
02-Jun-2015 |
Tom Gundersen <teg@jklm.no> |
udev: add some asserts
Mostly for documentation purposes. |
0454229c100a2113ba82df55703436d6cb2c492b |
|
22-May-2015 |
Jason S. McMullan <jason.mcmullan@gmail.com> |
udev/net_id: Only read the first 64 bytes of PCI config space
The original code used fread(), which on some libc implementions
(ie glibc 2.17) would pre-read a full 4K (PAGE_SIZE) of the
PCI config space, when only 64 bytes were requested.
I have recently come across PCIe hardware which responds with
Completion Timeouts when accesses above 256 bytes are attempted.
This can cause server systems with GHES/AEPI support to cause
and immediate kernel panic due to the failed PCI transaction.
This change replaces the buffered fread() with an explict
unbuffered read() of 64 bytes, which corrects this issue by
only reading the guaranteed first 64 bytes of PCIe config space. |
309b578d313b363974b99e48f0e378111cc1fa91 |
|
01-Apr-2015 |
Tom Gundersen <teg@jklm.no> |
udev: net_id - improve comments
The dev_port concept is a bit confusing, expand on the comment a bit. |
c0a43734ca84a3c9170d4a2d7f4d329b9ef47abc |
|
01-Apr-2015 |
Tom Gundersen <teg@jklm.no> |
udev: net_id - support multi-port enpo* device names
I'd argue that having firmware labels for such devices makes
no sense, but they exist, so make sure we handle them as best
as we can. |
16f948cb208f1db9a1665f07ac9b22e416dc19d4 |
|
01-Apr-2015 |
Tom Gundersen <teg@jklm.no> |
udev: net_id - fix copy-paste error
In case pci_slot overflows we were truncating pci_path instead. |
63c372cb9df3bee01e3bf8cd7f96f336bddda846 |
|
03-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
util: rework strappenda(), and rename it strjoina()
After all it is now much more like strjoin() than strappend(). At the
same time, add support for NULL sentinels, even if they are normally not
necessary. |
1fa2f38f0f011010bf57522b42fcc168856a7003 |
|
22-Jan-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Assorted format fixes
Types used for pids and uids in various interfaces are unpredictable.
Too bad. |
5ac0162c3af95efa08a07b84ff62ad32842922c7 |
|
05-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
udevadm,..: make --help output of udev tools more like the output of the various other tools |
f7340ab269828d917cd1281e33e6dd4fdfee67b3 |
|
11-Dec-2014 |
Torstein Husebø <torstein@huseboe.net> |
treewide: correct spacing near eol in code comments |
1cb5d1f31909c731d93568eb4838cb86e033d783 |
|
12-Aug-2014 |
Lennart Poettering <lennart@poettering.net> |
udev: modernize net_id builtin a bit |
3058e017fced6d5c8712e10c8c1477421bc1e960 |
|
01-Jul-2014 |
Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com> |
Use dev_port for the ID of a network device.
For network devices on the same PCI function, dev_id should not be used,
since its purpose is for IPv6 support on interfaces with the same MAC
address.
The new dev_port sysfs attribute should be used instead of dev_id. |
19aa72f74e41045510b4af3f1415b419d42ff20b |
|
06-Apr-2014 |
Tom Gundersen <teg@jklm.no> |
udev: net_id - use constants rather than magic numbers |
bf81e792f3c0aed54edf004c1c95cc6f6d81d0ee |
|
27-Mar-2014 |
Tom Gundersen <teg@jklm.no> |
udev: persistent naming - we cannot use virtio numbers as they are not stable
This reverts commit 8741f2defaf26aafe5ee0fd29954cfdf84ee519c: 'Add virtio-blk support to path_id' and
commit e3d563346c4237af23335cc6904e0662efdf62ad: 'udev: net_id - handle virtio buses'.
Distros may want to take note of this, as it changes behavior. |
d4b687c96adf207f0878aebf3ce3371f6160687f |
|
27-Mar-2014 |
Kay Sievers <kay@vrfy.org> |
udev: update net_id comments |
e0d4a0ac06afb856c9370c5c256f0f7bb7efdc8e |
|
11-Jan-2014 |
Hendrik Brueckner <brueckner@redhat.com> |
udev/net_id: Introduce predictable network names for Linux on System z
Use the bus-ID to create predicatable devices names for network interfaces
on Linux on System z instances. The bus-ID identifies a device in the s390
channel subsystem.
Network interfaces of device type Ethernet are named as:
enccw0.0.1234 (13 characters)
up to
enccwff.7.ffff (14 characters)
CTC network devices of device type SLIP, use a different prefix as follows:
slccw0.0.1234 (13 characters)
See also Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=870859
[tomegun: typical problem of netdevs switching names between reboots.] |
e3d563346c4237af23335cc6904e0662efdf62ad |
|
04-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
udev: net_id - handle virtio buses
This was already supported in path_id, so should be uncontroversial. |
b5dd8148730db080b48b874c214f8f74ae787d6b |
|
15-Dec-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Fix a few signed/unsigned format string issues
Since numbers involved are all small, behaviour was correct already.
https://bugzilla.redhat.com/show_bug.cgi?id=1043304 |
f168c27313e4d7b0aabee037dc9c78a5799f0597 |
|
03-Dec-2013 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
trivial coding style clean ups
- Add space between if/for and the opening parentheses
- Place the opening brace on same line as the function (not for udev)
From the CODING_STYLE
Try to use this:
void foo() {
}
instead of this:
void foo()
{
} |
a4bbef099209d4e3bccd913cd30da536f8971064 |
|
08-Jul-2013 |
Kay Sievers <kay@vrfy.org> |
hwdb: add --lookup-prefix= option |
67410e9f73a6cdd8453c78b966451b5151def14a |
|
01-Jul-2013 |
Kay Sievers <kay@vrfy.org> |
hwdb: add --device=<device-id> and --filter=<key name glob> |
214daa72cb0c72ea78d1eccd5ffe630a1e04b2f7 |
|
18-Jun-2013 |
Sean McGovern <gseanmcg@gmail.com> |
udev: handle network controllers in nonstandard domains
Onboard network controllers are not always on PCI domain 0.
[Kay: use int instead of long, add [P] to slot naming, remove sysname var] |
b92bea5d2a9481de69bb627a7b442a9f58fca43d |
|
06-Apr-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Use initalization instead of explicit zeroing
Before, we would initialize many fields twice: first
by filling the structure with zeros, and then a second
time with the real values. We can let the compiler do
the job for us, avoiding one copy.
A downside of this patch is that text gets slightly
bigger. This is because all zero() calls are effectively
inlined:
$ size build/.libs/systemd
text data bss dec hex filename
before 897737 107300 2560 1007597 f5fed build/.libs/systemd
after 897873 107300 2560 1007733 f6075 build/.libs/systemd
… actually less than 1‰.
A few asserts that the parameter is not null had to be removed. I
don't think this changes much, because first, it is quite unlikely
for the assert to fail, and second, an immediate SEGV is almost as
good as an assert. |
bb26309dd042c79de907f103d83f398b9436cde0 |
|
03-Mar-2013 |
Rob Clark <robdclark@gmail.com> |
udev: fix segfault with android rndis
The android gadget driver for network tethering over rndis somehow has a
parent device with a null subsystem. Probably this is bug in android driver,
but it is easy enough to make systemd/udev behave gracefully and not
segfault. And this will help for making linux distros with systemd
(like fedora) work on android devices. |
a5c32cff1f56afe6f0c6c70d91a88a7a8238b2d7 |
|
14-Feb-2013 |
Harald Hoyer <harald@redhat.com> |
honor SELinux labels, when creating and writing config files
Also split out some fileio functions to fileio.c and provide a SELinux
aware pendant in fileio-label.c
see https://bugzilla.redhat.com/show_bug.cgi?id=881577 |
090be8653471e1abe3f1cdd32eaad0fbd65f85cd |
|
13-Feb-2013 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
use streq instead of strcmp |
641906e9366891e0ad3e6e38b7396a427678c4cf |
|
13-Feb-2013 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
use strneq instead of strncmp |
25da63b9dac8f166ebf390ca92d1de18fbfc9d11 |
|
19-Jan-2013 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - add link to the wiki page |
f4ddacbd4de0f159ec598f8ad690466a84787ec5 |
|
17-Jan-2013 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - suppress bcma core == 0 |
984c4348ff14d29c526d3d372daa82e278eeb5b4 |
|
17-Jan-2013 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - handle "bcma" buses |
d5a89d7dc17a5ba5cf4fc71f82963c5c94a31c3d |
|
09-Jan-2013 |
Kay Sievers <kay@vrfy.org> |
udev: move string copy functions to shared/ |
3c123e0899b56c0587db36420da5e049c56d9e19 |
|
09-Jan-2013 |
Lukas Nykryn <lnykryn@redhat.com> |
udev: don't call fclose on NULL in is_pci_multifunction |
72bc96f07868d532596477604b6fb41633ebd124 |
|
08-Jan-2013 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - skip stacked network devices |
1328f66ad16b5afeb5684858c27e121a46c1959e |
|
04-Jan-2013 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - append "dev_id" value if needed |
decd634e801bee2c554edb35383cc9d43417a850 |
|
09-Dec-2012 |
Kay Sievers <kay@vrfy.org> |
udev: net_id: update comments |
971e7fb62548f2c9c4e32684bb13409e6579dc6a |
|
06-Dec-2012 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - fix OUI handling |
0d6ce9236f61cb991d7e8f2359d818e41ead0cf5 |
|
06-Dec-2012 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - fix typos |
ad37f393fa97f4274cc3bf97a0d8c388a429037e |
|
06-Dec-2012 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - update examples |
f610d6de38119b372b377ec41b2a6089872d3294 |
|
06-Dec-2012 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - update examples |
0260944060426d54d9ecb40930baad985cbd02a1 |
|
06-Dec-2012 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - provide path names for USB devices |
5fe25affc01fb003a3a66937458a25640a6075ce |
|
04-Dec-2012 |
Tom Gundersen <teg@jklm.no> |
hwdb: add IAB to the OUI database
The individual address block is a poor man's organizationally unique
identifier.
Perhaps we should change the udev key from ID_OUI_FROM_DATABASE to
something like ID_IEEE_VENDOR_FROM_DATABASE?
Suggested-by: Diego Elio Pettenò <flameeyes@flameeyes.eu> |
137661d87525a3c339afd2804e577532d58d3fbc |
|
03-Dec-2012 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - clarify comments |
472780d8b1ec3f3f4ff78eb21a013136e5aa1cfe |
|
02-Dec-2012 |
Kay Sievers <kay@vrfy.org> |
udev: hwdb - fix OUI lookup |
de892aea1c486b59e04884268b612081d1660514 |
|
30-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - suppress function number for single-function devices |
5b8180d3f6598a1b2f296645690de41d726fd5ab |
|
26-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - merge properties into the correct device |
0035597a30d120f70df2dd7da3d6128fb8ba6051 |
|
26-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - export PCI hotplug slot names |
01d183ddae6fb3445c4519cf1d90c6575f17292e |
|
23-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - read ACPI _SUN -- slot user number |
d23965a64eb5c2c97b839dc2e3e79fc1613994f1 |
|
20-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
udev: net - add device naming properties |
a660c63c551b88136ac6176855b5907cc533e848 |
|
09-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
udev: net_id - add builtin to retrieve data for network devices |