diff options
author | Michal Sekletar <msekleta@redhat.com> | 2016-02-01 10:44:58 +0100 |
---|---|---|
committer | Michal Sekletar <msekleta@redhat.com> | 2016-02-02 16:46:28 +0100 |
commit | 795ab08f783e78e85f1493879f13ac44cb113b00 (patch) | |
tree | 6956a70d565ef6665410640f79bb1d61fcc6d1eb /src/hostname | |
parent | dcabda41558bf80724992d3973388af6974af5eb (diff) |
journalctl: make "journalctl /dev/sda" work
Currently when journalctl is called with path to block device node we
add following match _KERNEL_DEVICE=b$MAJOR:$MINOR.
That is not sufficient to actually obtain logs about the disk because
dev_printk() kernel helper puts to /dev/kmsg information about the
device in following format, +$SUBSYSTEM:$ADDRESS,
e.g. "+pci:pci:0000:00:14.0".
Now we will walk upward the syspath and add match for every device in
format produced by dev_printk() as well as match for its device node if
it exists.
Diffstat (limited to 'src/hostname')
0 files changed, 0 insertions, 0 deletions