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. |
f073b1b3c0f4f0df1b0bd61042ce85fb5d27d407 |
|
09-Feb-2016 |
Michal Sekletar <msekleta@redhat.com> |
path_id: reintroduce by-path links for virtio block devices
Enumeration of virtio buses is global and hence
non-deterministic. However, we are guaranteed there is never going to be
more than one virtio bus per parent PCI device. While populating
ID_PATH we simply skip virtio part of the syspath and we extend the path
using the sysname of the parent PCI device.
With this patch udev creates following by-path links for virtio-blk
device /dev/vda which contains two partitions.
ls -l /dev/disk/by-path/
total 0
lrwxrwxrwx 1 root root 9 Feb 9 10:47 virtio-pci-0000:00:05.0 -> ../../vda
lrwxrwxrwx 1 root root 10 Feb 9 10:47 virtio-pci-0000:00:05.0-part1 -> ../../vda1
lrwxrwxrwx 1 root root 10 Feb 9 10:47 virtio-pci-0000:00:05.0-part2 -> ../../vda2
See:
http://lists.linuxfoundation.org/pipermail/virtualization/2015-August/030328.html
Fixes #2501 |
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. |
e7eb5a8d88367a755944fdda3023a308e5272953 |
|
13-Nov-2015 |
Liu Yuan Yuan <bjyyliu@linux.vnet.ibm.com> |
udev/path_id: improve and enhance bus detection for Linux on z Systems
Improve and enhance the path_id udev builtin to correctly handle bus'
available on Linux on z Systems (s390).
Previously, the CCW bus and, in particular, any FCP devices on it, have
been treated separately. This commit integrates the CCW bus into the
device chain loop. FCP devices and their associated SCSI disks are now
handled through the common SCSI handling functions in path_id.
This implies also a change in the naming of the symbolic links created
by udev. So any backports of this commit to existing Linux distribution
must be done with care. If a backport is required, a udev rule must be
created to also create the "old-style" symbolic links.
Apart from the CCW bus, this commit adds bus support for the:
- ccwgroup bus which manages network devices, and
- ap bus which manages cryptographic adapters
- iucv bus which manages IUCV devices on z/VM |
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ce |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out allocation calls into alloc-util.[ch] |
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. |
ba86822db70d9ffd02ad78cd02b237ff8c569c7a |
|
08-Sep-2015 |
David Milburn <dmilburn@redhat.com> |
udev: build by-path identifiers for ATA devices.
/dev/disk/by-path
total 0
lrwxrwxrwx. 1 root root 9 Sep 4 10:02 pci-0000:00:1f.2-ata-2 -> ../../sr0
lrwxrwxrwx. 1 root root 9 Sep 4 10:02 pci-0000:00:1f.2-ata-3 -> ../../sdd
lrwxrwxrwx. 1 root root 10 Sep 4 10:02 pci-0000:00:1f.2-ata-3-part1 -> ../../sdd1
lrwxrwxrwx. 1 root root 10 Sep 4 10:02 pci-0000:00:1f.2-ata-3-part2 -> ../../sdd2
lrwxrwxrwx. 1 root root 10 Sep 4 10:02 pci-0000:00:1f.2-ata-3-part3 -> ../../sdd3
lrwxrwxrwx. 1 root root 9 Sep 4 10:02 pci-0000:03:00.0-ata-4 -> ../../sda
lrwxrwxrwx. 1 root root 10 Sep 4 10:02 pci-0000:03:00.0-ata-4-part1 -> ../../sda1
lrwxrwxrwx. 1 root root 10 Sep 4 10:02 pci-0000:03:00.0-ata-4-part2 -> ../../sda2
lrwxrwxrwx. 1 root root 9 Sep 4 10:02 pci-0000:08:00.0-ata-1 -> ../../sdc
lrwxrwxrwx. 1 root root 10 Sep 4 10:02 pci-0000:08:00.0-ata-1-part1 -> ../../sdc1
lrwxrwxrwx. 1 root root 10 Sep 4 10:02 pci-0000:08:00.0-ata-1-part2 -> ../../sdc2 |
dc4ebc0787a299f064553e6d28a7f35574ce1c2a |
|
17-Aug-2015 |
Markus Elfring <elfring@users.sourceforge.net> |
Bug #944: Deletion of unnecessary checks before calls of the function "free"
The function "free" is documented in the way that no action shall occur for
a passed null pointer. It is therefore not needed that a function caller
repeats a corresponding check.
http://stackoverflow.com/questions/18775608/free-a-null-pointer-anyway-or-check-first
This issue was fixed by using the software Coccinelle 1.0.1. |
97b11eedff9d2e17101ad453caf9e48b73246719 |
|
31-Jul-2015 |
David Herrmann <dh.herrmann@gmail.com> |
tree-wide: introduce mfree()
Pretty trivial helper which wraps free() but returns NULL, so we can
simplify this:
free(foobar);
foobar = NULL;
to this:
foobar = mfree(foobar); |
28541a3d7c8b1caf0bda5e812566a1f5e7956352 |
|
02-Jun-2015 |
Tom Gundersen <teg@jklm.no> |
udev-builtin: path_id - don't pass NULL to udev_device_get_parent()
Being explicit about this makes the code easier to follow IMHO. |
3b64e4d4f40baac56148c7d333d6a0053358ec7a |
|
02-Jun-2015 |
Tom Gundersen <teg@jklm.no> |
udev: add some asserts
Mostly for documentation purposes. |
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 |
66bba0e701b95dc42ed53e8f0799a7e2b944c147 |
|
04-Dec-2014 |
Maurizio Lombardi <mlombard@redhat.com> |
udevd: SAS: use SAS addr + PHY id in by-path whenever possible.
This patch changes the naming scheme for sas disks. The original names used
disk's sas address and lun, the new scheme uses sas address of the
nearest expander (if available) and a phy id of the used connection.
If no expander is used, the phy id of hba phy is used.
Note that names that refer to RAID or other abstract devices are
unchanged.
Name in raid configuration:
hba_pci_address-sas-raid_sas_address-lunY-partZ
Name in expander bare disk configuration:
hba_pci_address-sas-expander_sas_address-phyX-lunY-partZ
Name format without expanders:
hba_pci_address-sas-phyX-lunY-partZ
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com> |
a42cdff19f2d34f12ceca0f40707421a8aaa2c2f |
|
30-Oct-2014 |
Kay Sievers <kay@vrfy.org> |
udev: path_id - update comments |
cc821d02a37c8c76aaf15bae2d33fee1bdc4b2e0 |
|
28-Oct-2014 |
Kay Sievers <kay@vrfy.org> |
udev: path_id - set supported_parent for well-known SCSI setups |
e98bbfd2074e2b1079b7059341eac25741baf319 |
|
04-Aug-2014 |
Kay Sievers <kay@vrfy.org> |
udev: path_id - suppress ID_PATH for devices with an unknown parent device type
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1321816 |
9ec6e95b046de71c0198cb9d17acc5462dc76c74 |
|
29-Jul-2014 |
Kay Sievers <kay@vrfy.org> |
udev: place opening { at the same line as the function declaration |
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. |
d9de321f785a075fb31508cd695abb1b02a24832 |
|
15-Dec-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
udev-builtin-path: fix printf specifiers |
9091e686f43184065381aa71929e3df36a4ea2e1 |
|
14-Dec-2013 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
Add more _printf_'s for format-nonliterals
Clang is a bit more strict wrt format-nonliterals:
http://clang.llvm.org/docs/LanguageExtensions.html#format-string-checking
Adding these extra printf attributes also makes gcc able to find more
problems. E.g. this patch uncovers a format issue in udev-builtin-path_id.c
Some parts looked intetional about breaking the format-nonliteral check.
I added some supression for warnings there. |
89f17d4f807f2fbd9918b513296e25ee2be108c3 |
|
26-Oct-2013 |
Tom Gundersen <teg@jklm.no> |
udev-builtin: path_id - add support for bcma bus
This matches the bcma support in the network device naming.
Eventually wa want to make sure ID_PATH is equivalent to ID_NET_NAME_PATH,
so we never need to match on the latter. |
dd8b2bf433a42683380b6fa041660dd92f91b6a9 |
|
17-Sep-2013 |
Sebastian Ott <sebott@linux.vnet.ibm.com> |
udev: path_id - fix by-path link generation for scm devices
Set some_transport = true to prevent scm devices from being ignored.
Suggested-by: Harald Hoyer <harald@redhat.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> |
090be8653471e1abe3f1cdd32eaad0fbd65f85cd |
|
13-Feb-2013 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
use streq instead of strcmp |
59d86149b062c382aa560798426bc9f3f667403f |
|
17-Jan-2013 |
Kay Sievers <kay@vrfy.org> |
udev: path_id - clarify comment about the kernel ATA naming problem |
a24d03b8ee2ca62cd1273e27cf4e79ddcc0fbb1c |
|
23-Nov-2012 |
Hannes Reinecke <hare@suse.de> |
udev: path_id - handle Hyper-V devices
Hyper-V has an abstract bus, which gets renumbered on guest
startup. So instead of the bus numbers we should be using
the device GUIDs, which can be retrieved from the 'device_id'
sysfs attribute. |
33b40551236a6c0c323226b78f1b1e5751a95ff5 |
|
12-Nov-2012 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
remove duplicate semicolons |
1298001ec5e320f9f9b6a9b925c8939b2579396d |
|
12-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
use the same email address everywhere |
4ecc131848c942196fe11f46468574da5cff19f4 |
|
11-Oct-2012 |
Sebastian Ott <sebott@linux.vnet.ibm.com> |
udev: path_id - add scm support
Add support for scm block devices. Introduced here:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=f30664e2
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> |
1c7dfbf249f5320d0675fcb03556a55881e21457 |
|
03-Aug-2012 |
Kay Sievers <kay@vrfy.org> |
udev: path_id - add comment about the unrteliable rebase logic |
2a3fe9a75951cb085b81569939f6af3ce2eb2b02 |
|
20-Jul-2012 |
Kay Sievers <kay@vrfy.org> |
udev: path_id - export path for platform block devices
Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
>
> E.g. I have a platform with two sdhci controllers with different purposes.
> First slot is an external slot while second one is internal with a
> non-removable card.
>
> When there is a card in the external slot at boot, the non-removable card is
> named 'mmcblk1'; without the external card it is 'mmcblk0'. Vice versa for the
> external card.
https://bugs.freedesktop.org/show_bug.cgi?id=52309 |
9e055fb8fc462f7a0d6ae049743dfae4bfa85ea7 |
|
10-May-2012 |
Kay Sievers <kay@vrfy.org> |
udev: path_id - cciss - set "we have a bus" flag |
68acb21d796adf294f2175b525d400bd4ceaef63 |
|
10-May-2012 |
Hannes Reinecke <hare@suse.de> |
udev: path_id - add cciss support |
7fdd367e6d675d4546074c5dd35bf168d7c17339 |
|
07-May-2012 |
Kay Sievers <kay@vrfy.org> |
udev: path_id - skip PCI-only-parents for block devices |
33502ffe2eb7b56cdd018a4fb6830d7828519fad |
|
16-Apr-2012 |
Kay Sievers <kay@vrfy.org> |
udev: use startswith() and streq() |
3e2147858f21943d5f4a781c60f33ac22c6096ed |
|
04-Apr-2012 |
Kay Sievers <kay.sievers@vrfy.org> |
move imported udev into place |