Alexander Kuleshov
ea4b98e657
tree-wide: merge pager_open_if_enabled() to the pager_open()
...
Many subsystems define own pager_open_if_enabled() function which
checks '--no-pager' command line argument and open pager depends
on its value. All implementations of pager_open_if_enabled() are
the same. Let's merger this function with pager_open() from the
shared/pager.c and remove pager_open_if_enabled() from all subsytems
to prevent code duplication.
2016-02-26 01:13:23 +06:00
Martin Pitt
16fe5e8b1d
Merge pull request #2707 from teg/man-network
...
network: minor manpage clarifications
2016-02-23 08:25:13 +01:00
Martin Pitt
548bd139fe
Merge pull request #2698 from poettering/personality
...
Personality fixes
2016-02-23 08:19:20 +01:00
Zbigniew Jędrzejewski-Szmek
c4bcaa4148
Merge pull request #2706 from whot/hwdb-updates
...
Lenovo T460 and P50 touchpad axis corrections
2016-02-22 19:56:23 -05:00
Tom Gundersen
788f37c725
man: link - add suggestion for debugging
...
udevadm test-builtin can be very useful for testing .link files, so add a reference.
Addresses issue #2406 .
2016-02-23 01:25:32 +01:00
Tom Gundersen
2ae7505f01
man: network - clarify BindCarrier documentation
...
Make it clear that we are talking of links (in the sense used in networkd) and not ports.
Addresses issue #964 .
2016-02-23 01:25:32 +01:00
Tom Gundersen
eb142d8ec1
man: network - improve IPv6Token documentation
...
Enabling router advertisement may even trigger SLAAC or DHCPv6 to be used to configure
IPv6 addresses on the link. It may not be obvious that only in the SLAAC case will the
Token have an effect. Clarify this in the man page.
Addresses issue #863 .
2016-02-23 01:25:32 +01:00
Peter Hutterer
401e559135
hwdb: reshuffle Lenovo entries to sort alphabetically by model
2016-02-23 09:52:21 +10:00
Peter Hutterer
26f667eac1
hwdb: add axis range corrections for the Lenovo T460 and P50
2016-02-23 09:52:07 +10:00
Lennart Poettering
4d080d7798
Merge pull request #2701 from keszybz/udev-rules
...
udev-rules cleanup fix
2016-02-22 23:25:36 +01:00
Lennart Poettering
13f41f6266
github: CONTRIBUTING.md moved, let's fix the link to it
2016-02-22 23:23:06 +01:00
Lennart Poettering
26fbedd7dc
tests: add personality tests
2016-02-22 23:23:06 +01:00
Lennart Poettering
0c0fea07b8
util-lib: simplify personality() string matching
2016-02-22 23:23:06 +01:00
Lennart Poettering
d5b687e7c2
virt: make sure we don't ignore some errors
2016-02-22 23:23:06 +01:00
Lennart Poettering
7882632d5a
man: extend the Personality= documentation
...
Among other fixes, add information about more architectures that are supported
these days.
2016-02-22 23:23:06 +01:00
Lennart Poettering
f2d1736c60
util-lib: support various ppc archs in personality logic
2016-02-22 23:23:06 +01:00
Lennart Poettering
6e5f1b5742
util-lib: use the architecture ids from architecture.h for personalities
...
We have this ids, hence let's use them universally.
2016-02-22 23:23:06 +01:00
Lennart Poettering
0f9ae7d73d
build-sys: move shared/architecture.[ch] into basic/
...
After all, it is pretty generic, has no external deps besides libc, and is very
similar to virt.[ch] which is also in basic/
2016-02-22 23:23:06 +01:00
Martin Pitt
9fe436ae7d
Merge pull request #2704 from poettering/lldp-internal-fix
...
build-sys: add missing header file to Makefile.am
2016-02-22 23:21:46 +01:00
Lennart Poettering
13b3cdb91f
build-sys: add missing header file to Makefile.am
...
Fixes : #2700
2016-02-22 21:55:22 +01:00
Zbigniew Jędrzejewski-Szmek
916a8d4341
udev-rules: fix querying of attributes
...
faccessat returns 0 on success.
A cosmetic fix is also included: the slash was doubled unnecessarily.
2016-02-22 13:21:32 -05:00
Zbigniew Jędrzejewski-Szmek
587751eb66
udev-test.pl: add --strace option
...
It's useful when trying to see what the tests are doing.
I hardcoded '-efile' as the option to strace, but in the future
it might be useful to make this configurable.
2016-02-22 13:21:32 -05:00
Tom Gundersen
7c7c0cbe64
Merge pull request #2685 from poettering/lldp-fixes2
...
lldp fixes, second iteration
2016-02-22 17:38:34 +01:00
Lennart Poettering
a4ae7f1d73
Merge pull request #2695 from mustrumr/fix-calendarspec-skip
...
calendarspec: fix find_next skipping times
2016-02-22 16:16:05 +01:00
Zbigniew Jędrzejewski-Szmek
83ea2049fc
Merge pull request #2692 from ssahani/tunnel
...
networkd: tunnel fix tunnel address
2016-02-22 08:59:39 -05:00
Lennart Poettering
3535ed5949
Merge pull request #2694 from zonque/proxyarp-missing
...
missing.h: Explicitly check for IFLA_BRPORT_PROXYARP
2016-02-22 14:33:27 +01:00
Hristo Venev
a022d76e6a
calendarspec: fix find_next skipping times
...
reset usec when bumping hours/minutes
2016-02-22 08:02:48 -05:00
Daniel Mack
26c34ab4ee
missing.h: Explicitly check for IFLA_BRPORT_PROXYARP
...
RHEL explicitly disables IFLA_BRPORT_PROXYARP by renaming the enum value.
In order to support unpatched builds, we have two options:
a) redefine the enum value through missing.h and ignore the fact that it
is really unsupported, or
b) omit that enum value on rtnl_prot_info_bridge_port_types[]
As we are not actually using this netlink type anywhere, and because it
is only hooked up for the sake of completeness, this patch opts for the
former.
2016-02-22 13:22:30 +01:00
Daniel Mack
357726c8be
Merge pull request #2687 from poettering/resolved-fix-2683
...
networkd: make sure we allocate the NTA set before we add items to it
2016-02-22 09:59:07 +01:00
Daniel Mack
2c0608a33d
Merge pull request #2686 from poettering/github-templates
...
add github issue template
2016-02-22 09:58:23 +01:00
Zbigniew Jędrzejewski-Szmek
493070f3dc
Merge pull request #2688 from poettering/calendar-fix-2678
...
A fix for #2678
2016-02-21 21:29:41 -05:00
Lennart Poettering
e308ddcae2
util-lib: fix returned error code
...
Make sure we propagate errors properly.
2016-02-21 23:27:20 +01:00
Lennart Poettering
ea3894c1ba
util-lib: add (void) cast to indicate that we don't care about the normalization success
...
After all, we verify that every calendar part is not out of bounds later on,
and it's fully OK if the normalization has no effect.
2016-02-21 23:25:38 +01:00
Lennart Poettering
cbbf38aefc
networkd: make sure we allocate the NTA set before we add items to it
...
See: #2683
2016-02-21 22:27:01 +01:00
Lennart Poettering
1f210bdbe6
Merge pull request #2650 from vcaputo/async_fsync
...
Perform journal offlines asynchronously when possible
2016-02-21 21:35:50 +01:00
Lennart Poettering
c7044f9ed2
Merge pull request #2681 from keszybz/udev-rules
...
udev-rules cleanup and coverity warning silencing
2016-02-21 21:22:55 +01:00
Lennart Poettering
67b56fb29e
github: add a basic issue template
...
As documented here:
https://help.github.com/articles/creating-an-issue-template-for-your-repository/
2016-02-21 21:15:17 +01:00
Lennart Poettering
67bf157f38
github: move CONTRIBUTING.md into .github subdirectory
...
As suggested by:
https://github.com/blog/2111-issue-and-pull-request-templates
2016-02-21 21:05:02 +01:00
Lennart Poettering
da6c766d53
man: document the new EmitLLDP= .network setting
...
Also, beef up the LLDP documentation a bit.
2016-02-21 20:59:55 +01:00
Lennart Poettering
c8048350b8
update TODO
2016-02-21 20:59:55 +01:00
Lennart Poettering
90dffb2241
sd-lldp: beef up callback logic
...
Instead of just notifying about the fact that something changed in the
database, actually inform the callback what precisely changed. This is useful,
so that the LLDP tx logic can be put into "fast" mode as soon as a previously
unknown peer appears, as suggested by the LLDP spec.
2016-02-21 20:58:59 +01:00
Lennart Poettering
d08191a242
networkctl: ellipsize long LLDP fields in table output
2016-02-21 20:58:59 +01:00
Lennart Poettering
f5207c2206
networkctl: add missing newline to printf() format string
2016-02-21 20:58:59 +01:00
Lennart Poettering
2a5a6e05ca
network: turn on LLDP tx+rx for the default container network configuration
...
Containers are relatively trusted and the veth tunnels are small networks,
hence let's turn on LLDP both ways for them.
2016-02-21 20:58:59 +01:00
Lennart Poettering
8e1ad1eaf7
networkd: add basic LLDP transmission support
...
Let's add some minimalistic LLDP sender support. The idea is that this is
either on or off, and all fields determined automatically rather than
configured explicitly.
2016-02-21 20:58:59 +01:00
Lennart Poettering
b553a6b13c
sd-lldp: filter out LLDP messages coming from our own MAC address
...
Let's not get confused should we be connected to some bridge that mirrors back
our packets.
2016-02-21 20:40:58 +01:00
Lennart Poettering
33859a6bf5
import: don't claim we had copied a settings file if we didn't
2016-02-21 20:40:57 +01:00
Lennart Poettering
f479d3baa7
man: update references to fedora cloud image
...
We are now at F23, hence let's use that as example.
2016-02-21 20:40:57 +01:00
Lennart Poettering
b9d74c40c6
networkd: make a couple of functions static
...
These functions are nowadays used only within networkd-link.c, hence ther's no
point in littering our public namespace with them.
2016-02-21 20:40:57 +01:00
Lennart Poettering
273eec24f5
networkd: rework when LLDP reception is enabled
...
Being on the link-layer LLDP is nothing we should turn on only when there's a
link beat. Instead, turn it on, whenever the iface is UP regardless if there's
a link beat or not. This closes the race between a link beat being available
and us subscribing to LLDP as a result.
2016-02-21 20:40:57 +01:00