summaryrefslogtreecommitdiffstats
path: root/rules.d/64-btrfs.rules.in (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-05-16Fixed a typoei-ke1-1/+1
2021-05-16docs: Update link to journal file format codebaseMilan1-1/+1
2021-05-16docs: Update link to journal-def.hMilan1-1/+1
2021-05-15network:dhcp4_server_configure returns if not able to get timezonetramsay1-7/+9
When /etc/localtime is a symbolic link pointing to another symbolic link, get_timezone will return -EINVAL instead of the timezone. This issue can cause systemd-networkd DHCPServer to fail. Instead of returning failure, log a warning indicating that that the timezone will not be sent. modified: networkd-dhcp-server.c
2021-05-15Add crypttab option silentSebastian Blunt4-5/+20
Adds a crypttab option 'silent' that enables the AskPasswordFlag ASK_PASSWORD_SILENT. This allows usage of systemd-cryptsetup to default to silent mode, rather than requiring the user to press tab every time.
2021-05-15test: combine stdout/stderr from failed testDan Streetman1-7/+24
Printing stdout and stderr from a failed test makes it harder to interpret what the specific problem was; instead let's print out the lines in order as we got them when the test was run Also save failed test output to file if ARTIFACT_DIRECTORY is defined
2021-05-15resolved: fix braino with reference counting and linked listsZbigniew Jędrzejewski-Szmek1-10/+32
In 0e0fd08fc832b8f42e567d722d388eba086da5ff I added reference counts to keep track of the DnsQueryCandidate objects. Unfortunately, dns_query_unref_candidates() was written as while (q->candidates) dns_query_candidate_unref(q->candidates); i.e. it would keep dropping the reference count as many times as needed for it to hit 0, making the patch less than fully effective. dns_query_unref_candidates() is renamed to dns_query_detach_candidates() and changed to drop exactly one reference from each of the linked candidates. Example failure: ==463== Invalid read of size 8 ==463== at 0x419C93: dns_query_candidate_go (resolved-dns-query.c:159) ==463== by 0x41A143: dns_query_candidate_notify (resolved-dns-query.c:304) ==463== by 0x434BD6: dns_transaction_complete (resolved-dns-transaction.c:437) ==463== by 0x436A0F: dns_transaction_process_dnssec (resolved-dns-transaction.c:976) ==463== by 0x4378C1: dns_transaction_process_reply (resolved-dns-transaction.c:1387) ==463== by 0x437CE9: on_dns_packet (resolved-dns-transaction.c:1444) ==463== by 0x4B2DC9B: source_dispatch (sd-event.c:3512) ==463== by 0x4B2FB1F: sd_event_dispatch (sd-event.c:4077) ==463== by 0x4B2FFFA: sd_event_run (sd-event.c:4138) ==463== by 0x4B301D6: sd_event_loop (sd-event.c:4159) ==463== by 0x464A24: run (resolved.c:92) ==463== by 0x464B3C: main (resolved.c:99) ==463== Address 0x5f409d0 is 32 bytes inside a block of size 72 free'd ==463== at 0x48410E4: free (vg_replace_malloc.c:755) ==463== by 0x418EDF: mfree (alloc-util.h:48) ==463== by 0x4197E8: dns_query_candidate_free (resolved-dns-query.c:67) ==463== by 0x4198B7: dns_query_candidate_unref (resolved-dns-query.c:70) ==463== by 0x41A2E3: dns_query_unref_candidates (resolved-dns-query.c:337) ==463== by 0x41C5FE: dns_query_cname_redirect (resolved-dns-query.c:1028) ==463== by 0x41CA04: dns_query_process_cname_one (resolved-dns-query.c:1128) ==463== by 0x41CA80: dns_query_process_cname_many (resolved-dns-query.c:1157) ==463== by 0x40C0BD: bus_method_resolve_hostname_complete (resolved-bus.c:198) ==463== by 0x41B312: dns_query_complete (resolved-dns-query.c:562) ==463== by 0x41C1AC: dns_query_accept (resolved-dns-query.c:922) ==463== by 0x41C2C4: dns_query_ready (resolved-dns-query.c:955) ==463== by 0x41A162: dns_query_candidate_notify (resolved-dns-query.c:314) ==463== by 0x434BD6: dns_transaction_complete (resolved-dns-transaction.c:437) ==463== by 0x438995: dns_transaction_prepare (resolved-dns-transaction.c:1728) ==463== by 0x43921D: dns_transaction_go (resolved-dns-transaction.c:1928) ==463== by 0x419C7C: dns_query_candidate_go (resolved-dns-query.c:163) ==463== by 0x41A143: dns_query_candidate_notify (resolved-dns-query.c:304) ==463== by 0x434BD6: dns_transaction_complete (resolved-dns-transaction.c:437) ==463== by 0x436A0F: dns_transaction_process_dnssec (resolved-dns-transaction.c:976) ==463== by 0x4378C1: dns_transaction_process_reply (resolved-dns-transaction.c:1387) ==463== by 0x437CE9: on_dns_packet (resolved-dns-transaction.c:1444) ==463== by 0x4B2DC9B: source_dispatch (sd-event.c:3512) ==463== by 0x4B2FB1F: sd_event_dispatch (sd-event.c:4077) ==463== by 0x4B2FFFA: sd_event_run (sd-event.c:4138) ==463== by 0x4B301D6: sd_event_loop (sd-event.c:4159) ==463== by 0x464A24: run (resolved.c:92) ==463== by 0x464B3C: main (resolved.c:99) ==463== Block was alloc'd at ==463== at 0x483E86F: malloc (vg_replace_malloc.c:380) ==463== by 0x418F81: malloc_multiply (alloc-util.h:96) ==463== by 0x419378: dns_query_candidate_new (resolved-dns-query.c:23) ==463== by 0x41B42C: dns_query_add_candidate (resolved-dns-query.c:582) ==463== by 0x41BB7A: dns_query_go (resolved-dns-query.c:762) ==463== by 0x40CE3A: bus_method_resolve_hostname (resolved-bus.c:464) ==463== by 0x4A84B86: method_callbacks_run (bus-objects.c:414) ==463== by 0x4A87961: object_find_and_run (bus-objects.c:1323) ==463== by 0x4A87FEE: bus_process_object (bus-objects.c:1443) ==463== by 0x4AA3434: process_message (sd-bus.c:2964) ==463== by 0x4AA3623: process_running (sd-bus.c:3006) ==463== by 0x4AA4110: bus_process_internal (sd-bus.c:3226) ==463== by 0x4AA41EF: sd_bus_process (sd-bus.c:3253) ==463== by 0x4AA5343: io_callback (sd-bus.c:3604) ==463== by 0x4B2DC9B: source_dispatch (sd-event.c:3512) ==463== by 0x4B2FB1F: sd_event_dispatch (sd-event.c:4077) ==463== by 0x4B2FFFA: sd_event_run (sd-event.c:4138) ==463== by 0x4B301D6: sd_event_loop (sd-event.c:4159) ==463== by 0x464A24: run (resolved.c:92) ==463== by 0x464B3C: main (resolved.c:99) Fixes #19376.
2021-05-15Revert "tools/make-directive-index: parallelize"Zbigniew Jędrzejewski-Szmek1-42/+21
This reverts commit a2031de849da52aa85b7e4326c0112ed7e5b5672. The patch itself seems OK, but it exposes a bug in lxml or libxml2-2.9.12 which was just released. This is being resolved in https://gitlab.gnome.org/GNOME/libxml2/-/issues/255, but it might be while. So let's revert this for now to unbreak our CI. Fixes #19601.
2021-05-14meson: revert the change to unquote commands in add_install_scriptZbigniew Jędrzejewski-Szmek12-34/+48
Old meson fails with: Element not a string: [<Holder: <ExternalProgram 'sh' -> ['/bin/sh']>>, '-c', 'test -n "$DESTDIR" || /bin/journalctl --update-catalog'] I'm doing it as a revert so that it's easy to undo the revert when we require newer meson. The effect is not so bad, maybe a dozen or so lines about finding 'sh'.
2021-05-14fix typoYu Watanabe2-2/+2
2021-05-14meson: print autodetected sbat fieldsZbigniew Jędrzejewski-Szmek1-0/+1
... Message: sbat-distro (from ID): fedora Message: sbat-distro-summary (from NAME): Fedora Message: sbat-distro-url (from BUG_REPORT_URL): https://bugzilla.redhat.com/ ...
2021-05-14meson: call find_program() once and reuse the variable everywhereZbigniew Jędrzejewski-Szmek18-96/+79
Meson 0.58 has gotten quite bad with emitting a message every time a quoted command is used: Program /home/zbyszek/src/systemd-work/tools/meson-make-symlink.sh found: YES (/home/zbyszek/src/systemd-work/tools/meson-make-symlink.sh) Program sh found: YES (/usr/bin/sh) Program sh found: YES (/usr/bin/sh) Program sh found: YES (/usr/bin/sh) Program sh found: YES (/usr/bin/sh) Program sh found: YES (/usr/bin/sh) Program sh found: YES (/usr/bin/sh) Program xsltproc found: YES (/usr/bin/xsltproc) Configuring custom-entities.ent using configuration Message: Skipping bootctl.1 because ENABLE_EFI is false Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Message: Skipping journal-remote.conf.5 because HAVE_MICROHTTPD is false Message: Skipping journal-upload.conf.5 because HAVE_MICROHTTPD is false Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Message: Skipping loader.conf.5 because ENABLE_EFI is false Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) ... Let's suffer one message only for each command. Hopefully we can silence even this when https://github.com/mesonbuild/meson/issues/8642 is resolved.
2021-05-14man: reword descriptions of two DHCPv4 optionsZbigniew Jędrzejewski-Szmek1-5/+5
2021-05-14man: reorder items in [DHCPv4] and [DHCPv6] sectionsZbigniew Jędrzejewski-Szmek1-250/+269
The settings were listen in a completely random order, also different between the v4 and v6 sections. Order by "options sent", "options received", "communication settings" in both sections. Also minor formatting changes are done, e.g. "=" is added in various places.
2021-05-14network: shorten code a bit and update log messageYu Watanabe1-10/+6
2021-05-14shell-completion: support --json option for hostnamectlYu Watanabe2-2/+37
2021-05-14networkctl: introduce --json option for "status" and "list" commandsYu Watanabe4-2/+153
When `--json` option is specified, "status" and "list" commands gives the same information, as originally "list" just gives partial information of "status" in different format.
2021-05-14json: make JSON_VARIANT_ARRAY/OBJECT_FOREACH() nestableYu Watanabe1-13/+17
2021-05-14networkctl: use table_set_empty_string()Yu Watanabe1-3/+5
2021-05-14network: introduce Describe() method for manager and linksYu Watanabe6-0/+227
2021-05-14udev,network: make link_get_type_string() return negative errno on failureYu Watanabe7-24/+46
And make net_match_config() propagate the error.
2021-05-14network: move and rename network_get() -> link_get_network()Yu Watanabe4-86/+59
This also drops test_network_get(). But it tests almost nothing. So, it should be ok to not re-implement something like test_link_get_network().
2021-05-13run: update checks to allow running with a user's busAnita Zhang1-5/+5
systemd-run is documented to as being able to connect and run on a specific user bus with "--user --machine=lennart@.host" arguments. This PR updates some logic that prevented this from working.
2021-05-13tools/make-directive-index: parallelizeZbigniew Jędrzejewski-Szmek1-21/+42
I occasionally do 'build/man/man systemd.directives' when working on man pages, and it's annoying slow. By paralellizing the parsing of xml, we can make it a bit faster. This is still rather innefficient. Only the parsing part is serialized, xml is still produced serially at the end, which is hard to avoid. $ ninja -C build man/systemd.directives.xml before: 8.20s user 0.21s system 99% cpu 8.460 total 8.33s user 0.18s system 98% cpu 8.619 total 8.72s user 0.19s system 98% cpu 9.019 total after: 13.99s user 0.73s system 345% cpu 4.262 total 14.15s user 0.35s system 348% cpu 4.161 total 14.33s user 0.35s system 339% cpu 4.321 total I.e. it uses almost twice as much cpu, but cuts the wallclock time down (on a 2-core/4-thread cpu) to about half too, which is an overall win if you're just trying to render the man page. The change from list and .append() to set and .add() is something that could have been done before too, but it's noticable now. It cuts down on the serialization/deserialization time (about .2s).
2021-05-13Add Microsoft Pro Intellimouse MOUSE_DPI to hwdbSimon Watts1-0/+4
- Internet specifications give 1600 DPI @ 1000Hz for this sensor - Confirmed experimentally via `mouse-dpi-tool` - vid, pid, and name match string from `mouse-dpi-tool`
2021-05-13Update Korean translation (#19083)Seong-ho Cho1-49/+49
Co-authored-by: Seong-ho Cho <shcho@gnome.org>
2021-05-12resolved.conf.in: add missing Quad9 serversMichael Catanzaro1-1/+1
The example configuration is missing half of Quad9's addresses.
2021-05-12resolved: be more careful with weird links with low MTUsLennart Poettering1-4/+13
Apparently CAN links will show up in rtnetlink with very low MTUs. We shouldn't consider them relevant if no IP is spoken over them, since these MTUs are irrelevant for us then. Hence, let's check if there's an address assigned to the link before considering its MTU. As additional safety net filter out MTUs smaller than the minimum DNS packet size, too. Finally, in case we don't find any suitable interface MTU, let's default to 1500 as the generic Ethernet MTU. Fixes: #19396
2021-05-12pam: fix typo try_authtok → use_authtokLennart Poettering3-3/+4
This was a copy/paste mistae apparently, there's not "try_authtok" and this was supposed to copy what Fedora uses, which uses "use_authtok" correctly. Hence adjust this. Fixes: #19369
2021-05-12core/service: modernizationZbigniew Jędrzejewski-Szmek1-12/+9
2021-05-12test-bpf-foreign-programs: fix messageZbigniew Jędrzejewski-Szmek1-1/+1
2021-05-12docs/HACKING: wrap long linesZbigniew Jędrzejewski-Szmek1-10/+10
2021-05-12sd-event: tweak commentsZbigniew Jędrzejewski-Szmek1-4/+3
2021-05-12timedated: make ntp_synced() staticZbigniew Jędrzejewski-Szmek3-18/+13
No need to have this in basic.
2021-05-12netlink,network: drop "const" from opaque object parameters in ↵Lennart Poettering11-144/+144
supposed-to-be-public APIs This drops the "const" specifier from the opaque object parameters to various functions in our API. This effectively reverts #19292 and more. Why drop this? Our public APIs should not leak too much information about how stuff is implemented internally. In our public APIs we shouldn't give too many guarantees we don#t want to necessarily keep. Specifically: in many cases it makes sense that getters actually generate/parse/allocate data on the fly, storing/caching the result internally, to speed things up, do things lazily or to track memory allocations so that they can be freed later. Doing this means we need to change the objects, even though the getters are semantically a read operation. We want to retain the freedom that we can change things around internally. By exposing the objects as "const" we remove a good chunk of that, for little gain. See sd_bus_creds_get_description() for a real example of a getter that implicitly caches and thus modifies the relevant object. This removes the "const" decorators from sd-dhcp and sd-netlink, two APIs that we intend to make public eventually even though they still are not, leaving us the chance to still fix this before it becomes set in stone.
2021-05-12test-network: wait for the interfaces are configured after reloading ↵Yu Watanabe1-0/+4
.network files
2021-05-12test-network: wait for the intreface is configured if it is expectedYu Watanabe1-6/+2
2021-05-12network: make route_configure() return all created routesYu Watanabe1-12/+38
2021-05-12network: make log_route_debug() show multipath routes and Gateway=_dhcp4 or ↵Yu Watanabe1-6/+27
_ipv6ra
2021-05-12network: use request queue to configure addresses, routes, and nexthopsYu Watanabe16-572/+896
Why is this necessary? Several examples below. - When a route sets prefsrc, then the address must be already assigned (see issue #19285), and also it must be ready if IPv6. - When a route or nexthop sets gateway, then the address must be reachable. - When a route sets nexthop ID, then the corresponding nexthop must be assigned. - When a route sets multipath routes on another interface, then the interface must exist and be ready to configure. - When configuring address, the same address must not be under removing (see issue #18108). Etc,. etc,... So, this makes all requests about addresses, routes, and nethops are once stored in the queue, and will be processed when they are ready to configure. Fixes #18108 and #19285.
2021-05-12network: use request queue to configure neighborsYu Watanabe6-36/+94
2021-05-12network: use request queue to configure routing policy rulesYu Watanabe8-63/+144
2021-05-12network: introduce link_is_ready_to_configure() helper functionYu Watanabe2-0/+21
This will be used in later commits.
2021-05-12network: add skeleton of request queueYu Watanabe6-2/+192
This will be used in later commits.
2021-05-12network: nexthop: add NextHop object before sending netlink requestYu Watanabe1-6/+6
Otherwise, if nexthop_add() fails, then assertion about nexthop_messages in static_nexthop_handler() will be triggered.
2021-05-12network: split out common part of route or address handlersYu Watanabe8-171/+155
2021-05-12network: change order of dropping network configsYu Watanabe1-8/+8
As routes may requires nexthops and addresses, nexthops may requires addresses.
2021-05-12network: simplify and rename routing_policy_rule_copy()Yu Watanabe1-38/+20
2021-05-12network: introduce route_dup()Yu Watanabe2-0/+39
The function will be used in later commits.
2021-05-12sd-netlink: introduce multipath_route_dup()Yu Watanabe2-0/+31
The function will be used in later commits.