]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
16 months agorepart: Create disk image file with copy-on-write disabled on btrfs
Daan De Meyer [Tue, 23 Jul 2024 20:44:03 +0000 (22:44 +0200)] 
repart: Create disk image file with copy-on-write disabled on btrfs

COW on btrfs generally does not play well lots of random writes so
let's make the disk images generated by repart NOCOW by default on
btrfs like we do elsewhere across the codebase.

16 months agorepart: Make partition files NOCOW if the disk image is NOCOW
Daan De Meyer [Tue, 23 Jul 2024 19:43:13 +0000 (21:43 +0200)] 
repart: Make partition files NOCOW if the disk image is NOCOW

On btrfs, reflinks into a disk image that has copy-on-write disabled
only work if the source has copy-on-write disabled as well so let's
make sure that's the case if the disk image has copy-on-write disabled.

16 months agofs-util: Add XO_NOCOW flag
Daan De Meyer [Tue, 23 Jul 2024 19:37:11 +0000 (21:37 +0200)] 
fs-util: Add XO_NOCOW flag

Let's add a flag for xopenat() that immediately makes a file NOCOW
after opening it if it's supported.

16 months agofs-util: Clean up properly in xopenat_full() on labelling error
Daan De Meyer [Tue, 23 Jul 2024 19:35:08 +0000 (21:35 +0200)] 
fs-util: Clean up properly in xopenat_full() on labelling error

If we fail to relabel the file, we should unlink the file or directory
again, so let's make sure we do that.

16 months agofs-util: Handle dangling symlinks in openat_report_new()
Daan De Meyer [Wed, 24 Jul 2024 08:41:24 +0000 (10:41 +0200)] 
fs-util: Handle dangling symlinks in openat_report_new()

openat() will always resolve symlinks, except if O_NOFOLLOW is passed
or O_CREAT|O_EXCL is passed. This means that if a dangling symlink is
passed to openat_report_new(), the first call to openat() will always
fail with ENOENT and the second call to openat() will always fail with
EEXIST.

Let's catch this case explicitly and fallback to creating the file with
just O_CREAT and assume we're the ones that created the file. We can't
resolve the symlink with chase() because this function is itself called
by chase() so we could end up in weird recursive calls if we'd try to do
so.

16 months agotest-fs-util: Modernize openat_report_new() test
Daan De Meyer [Wed, 24 Jul 2024 08:50:38 +0000 (10:50 +0200)] 
test-fs-util: Modernize openat_report_new() test

16 months agotest-id128: Use new assertion macros
Daan De Meyer [Wed, 24 Jul 2024 07:56:25 +0000 (09:56 +0200)] 
test-id128: Use new assertion macros

16 months agotest: Add ASSERT_EQ_ID128() and ASSERT_NE_ID128()
Daan De Meyer [Wed, 24 Jul 2024 07:56:01 +0000 (09:56 +0200)] 
test: Add ASSERT_EQ_ID128() and ASSERT_NE_ID128()

16 months agotest: Add ASSERT_FAIL()
Daan De Meyer [Wed, 24 Jul 2024 07:55:21 +0000 (09:55 +0200)] 
test: Add ASSERT_FAIL()

16 months agomkosi: Update to latest
Daan De Meyer [Wed, 24 Jul 2024 11:27:46 +0000 (13:27 +0200)] 
mkosi: Update to latest

Includes the required fix to make mkosi copy NOCOW disk images properly.

16 months agoMerge pull request #33535 from neighbourhoodie/tests/dns-cache
Luca Boccassi [Tue, 23 Jul 2024 18:01:23 +0000 (19:01 +0100)] 
Merge pull request #33535 from neighbourhoodie/tests/dns-cache

Tests for DnsCache functions

16 months agoMerge pull request #33534 from neighbourhoodie/tests/dns-query
Luca Boccassi [Tue, 23 Jul 2024 17:47:14 +0000 (18:47 +0100)] 
Merge pull request #33534 from neighbourhoodie/tests/dns-query

Tests for DnsQuery functions

16 months agocore: clean up Set/LoadCredential= parsers
Mike Yuan [Wed, 3 Jul 2024 18:49:34 +0000 (20:49 +0200)] 
core: clean up Set/LoadCredential= parsers

Make logging consistent, plus introduce helper function
for adding creds to ExecContext.set_credential too.

16 months agomkosi: Bump device timeout even more
Daan De Meyer [Tue, 23 Jul 2024 12:16:23 +0000 (14:16 +0200)] 
mkosi: Bump device timeout even more

I still manage to hit it in some cases so let's bump again.

16 months agoMerge pull request #33533 from neighbourhoodie/tests/dns-synthesize
Luca Boccassi [Tue, 23 Jul 2024 14:44:40 +0000 (15:44 +0100)] 
Merge pull request #33533 from neighbourhoodie/tests/dns-synthesize

16 months agoresolved: tests for dns_synthesize_family() and dns_synthesize_protocol()
James Coglan [Mon, 24 Jun 2024 13:43:18 +0000 (14:43 +0100)] 
resolved: tests for dns_synthesize_family() and dns_synthesize_protocol()

16 months agoresolved: tests for dns_synthesize_answer()
James Coglan [Mon, 24 Jun 2024 13:23:23 +0000 (14:23 +0100)] 
resolved: tests for dns_synthesize_answer()

16 months agosd-dhcp-server: persist hardware addresses in leases
Mary Strodl [Fri, 12 Jul 2024 13:38:05 +0000 (09:38 -0400)] 
sd-dhcp-server: persist hardware addresses in leases

16 months agoresolved: tests for dns_query_string() 33534/head
James Coglan [Mon, 24 Jun 2024 09:16:02 +0000 (10:16 +0100)] 
resolved: tests for dns_query_string()

16 months agoresolved: tests for dns_query_go(); multiple search domains for dns_query_candidate_n...
James Coglan [Mon, 24 Jun 2024 08:22:17 +0000 (09:22 +0100)] 
resolved: tests for dns_query_go(); multiple search domains for dns_query_candidate_notify()

16 months agoresolved: refactor environment management in dns_query_go() tests
James Coglan [Mon, 24 Jun 2024 07:51:38 +0000 (08:51 +0100)] 
resolved: refactor environment management in dns_query_go() tests

16 months agoresolved: tests for dns_query_go() when configured with search domains
James Coglan [Fri, 21 Jun 2024 16:56:22 +0000 (17:56 +0100)] 
resolved: tests for dns_query_go() when configured with search domains

16 months agoresolved: tests for dns_query_go() when no scopes are available
James Coglan [Fri, 21 Jun 2024 16:43:16 +0000 (17:43 +0100)] 
resolved: tests for dns_query_go() when no scopes are available

16 months agoresolved: tests for dns_query_go() using a bypass query
James Coglan [Fri, 21 Jun 2024 16:01:01 +0000 (17:01 +0100)] 
resolved: tests for dns_query_go() using a bypass query

16 months agoresolved: tests for dns_query_go() -- with and without network link
James Coglan [Fri, 21 Jun 2024 14:40:20 +0000 (15:40 +0100)] 
resolved: tests for dns_query_go() -- with and without network link

16 months agoresolved: tests for dns_query_process_cname_one(); no match, DNAME, utf-8 handling
James Coglan [Thu, 20 Jun 2024 16:25:50 +0000 (17:25 +0100)] 
resolved: tests for dns_query_process_cname_one(); no match, DNAME, utf-8 handling

16 months agoresolved: tests for dns_query_process_cname_many()
James Coglan [Thu, 20 Jun 2024 16:03:33 +0000 (17:03 +0100)] 
resolved: tests for dns_query_process_cname_many()

16 months agoresolved: tests for common usage of dns_query_process_cname_one()
James Coglan [Thu, 20 Jun 2024 15:24:58 +0000 (16:24 +0100)] 
resolved: tests for common usage of dns_query_process_cname_one()

16 months agoresolved: tests for dns_query_make_auxiliary()
James Coglan [Thu, 20 Jun 2024 13:10:14 +0000 (14:10 +0100)] 
resolved: tests for dns_query_make_auxiliary()

16 months agoresolved: tests for dns_query_new()
James Coglan [Thu, 20 Jun 2024 09:13:21 +0000 (10:13 +0100)] 
resolved: tests for dns_query_new()

16 months agoresolved: tests for dns_cache_lookup() clamping the TTL 33535/head
James Coglan [Wed, 19 Jun 2024 11:22:49 +0000 (12:22 +0100)] 
resolved: tests for dns_cache_lookup() clamping the TTL

16 months agoresolved: tests for dns_cache_put() for NXDOMAIN with no SOA
James Coglan [Wed, 19 Jun 2024 11:01:06 +0000 (12:01 +0100)] 
resolved: tests for dns_cache_put() for  NXDOMAIN with no SOA

16 months agoresolved: test that pseudo classes and types are not cached
James Coglan [Wed, 19 Jun 2024 10:29:44 +0000 (11:29 +0100)] 
resolved: test that pseudo classes and types are not cached

16 months agoresolves: tests for dns_cache_prune()
James Coglan [Wed, 19 Jun 2024 09:39:01 +0000 (10:39 +0100)] 
resolves: tests for dns_cache_prune()

16 months agoresolved: tests for dns_cache_check_conflicts()
James Coglan [Wed, 19 Jun 2024 09:05:29 +0000 (10:05 +0100)] 
resolved: tests for dns_cache_check_conflicts()

16 months agoresolved: tests for dns_cache_export_shared_to_packet()
James Coglan [Tue, 18 Jun 2024 16:57:55 +0000 (17:57 +0100)] 
resolved: tests for dns_cache_export_shared_to_packet()

16 months agoresolved: tests for dns_cache_lookup(); mDNS and multiple matching entries
James Coglan [Tue, 18 Jun 2024 15:19:07 +0000 (16:19 +0100)] 
resolved: tests for dns_cache_lookup(); mDNS and multiple matching entries

16 months agoresolved: tests for dns_cache_lookup() returning the most recent input
James Coglan [Tue, 18 Jun 2024 14:02:30 +0000 (15:02 +0100)] 
resolved: tests for dns_cache_lookup() returning the most recent input

16 months agoresolved: tests for dns_cache_dump()
James Coglan [Fri, 24 May 2024 09:58:30 +0000 (10:58 +0100)] 
resolved: tests for dns_cache_dump()

16 months agoresolved: test cache misses
James Coglan [Thu, 23 May 2024 09:26:41 +0000 (10:26 +0100)] 
resolved: test cache misses

16 months agoresolved: tests for dns_cache_lookup() for NXDOMAIN
James Coglan [Thu, 23 May 2024 08:53:42 +0000 (09:53 +0100)] 
resolved: tests for dns_cache_lookup() for NXDOMAIN

16 months agoresolved: first test for dns_cache_lookup()
James Coglan [Wed, 22 May 2024 15:49:18 +0000 (16:49 +0100)] 
resolved: first test for dns_cache_lookup()

16 months agoresolved: tests for dns_cache_dump_to_json()
James Coglan [Wed, 22 May 2024 14:54:36 +0000 (15:54 +0100)] 
resolved: tests for dns_cache_dump_to_json()

16 months agoresolved: check that adding an expired response removes cache entry
James Coglan [Thu, 23 May 2024 14:57:05 +0000 (15:57 +0100)] 
resolved: check that adding an expired response removes cache entry

16 months agoresolved: tests for dns_cache_put(); CNAME success and name error
James Coglan [Tue, 21 May 2024 15:26:31 +0000 (16:26 +0100)] 
resolved: tests for dns_cache_put(); CNAME success and name error

16 months agoresolved: tests for dns_cache_put() with non-matching class, type, name
James Coglan [Tue, 21 May 2024 14:37:56 +0000 (15:37 +0100)] 
resolved: tests for dns_cache_put() with non-matching class, type, name

16 months agoresolved: refactor DNS answer construction for cache tests
James Coglan [Tue, 21 May 2024 13:49:40 +0000 (14:49 +0100)] 
resolved: refactor DNS answer construction for cache tests

16 months agoresolved: test for dns_cache_put() with empty answer
James Coglan [Tue, 21 May 2024 13:39:26 +0000 (14:39 +0100)] 
resolved: test for dns_cache_put() with empty answer

16 months agoresolved: tests for dns_cache_put() with different RCODEs
James Coglan [Tue, 21 May 2024 13:30:30 +0000 (14:30 +0100)] 
resolved: tests for dns_cache_put() with different RCODEs

16 months agoresolved: tests for dns_cache_put(); successful A query
James Coglan [Fri, 17 May 2024 10:22:34 +0000 (11:22 +0100)] 
resolved: tests for dns_cache_put(); successful A query

Co-Authored-By: jan@neighbourhood.ie
16 months agoMerge pull request #33531 from neighbourhoodie/tests/dns-zone
Luca Boccassi [Tue, 23 Jul 2024 12:29:03 +0000 (13:29 +0100)] 
Merge pull request #33531 from neighbourhoodie/tests/dns-zone

16 months agoresolved: tests for dns_zone_lookup()
James Coglan [Wed, 5 Jun 2024 11:13:18 +0000 (12:13 +0100)] 
resolved: tests for dns_zone_lookup()

16 months agoresolved: tests for dns_zone_remove_rrs_by_key()
James Coglan [Fri, 31 May 2024 15:50:17 +0000 (16:50 +0100)] 
resolved: tests for dns_zone_remove_rrs_by_key()

16 months agoresolved: tests for dns_zone_remove_rr()
James Coglan [Fri, 31 May 2024 15:35:36 +0000 (16:35 +0100)] 
resolved: tests for dns_zone_remove_rr()

16 months agoresolved: tests for dns_zone_put()
James Coglan [Fri, 31 May 2024 14:42:18 +0000 (15:42 +0100)] 
resolved: tests for dns_zone_put()

16 months agoMerge pull request #33530 from neighbourhoodie/tests/dns-search-domain
Luca Boccassi [Tue, 23 Jul 2024 12:23:44 +0000 (13:23 +0100)] 
Merge pull request #33530 from neighbourhoodie/tests/dns-search-domain

16 months agoresolved: tests for dns_search_domain_find()
James Coglan [Fri, 31 May 2024 14:15:48 +0000 (15:15 +0100)] 
resolved: tests for dns_search_domain_find()

16 months agoresolved: tests for search domain marking and unlinking
James Coglan [Fri, 31 May 2024 14:11:53 +0000 (15:11 +0100)] 
resolved: tests for search domain marking and unlinking

16 months agoresolved: extract function for checking search domains
James Coglan [Fri, 31 May 2024 13:50:20 +0000 (14:50 +0100)] 
resolved: extract function for checking search domains

16 months agoresolved: tests for dns_search_domain_unlink()
James Coglan [Fri, 31 May 2024 13:37:01 +0000 (14:37 +0100)] 
resolved: tests for dns_search_domain_unlink()

16 months agoresolved: tests for dns_search_domain_new()
James Coglan [Fri, 31 May 2024 11:56:11 +0000 (12:56 +0100)] 
resolved: tests for dns_search_domain_new()

16 months agoMerge pull request #33529 from neighbourhoodie/tests/dns-link
Luca Boccassi [Tue, 23 Jul 2024 12:20:25 +0000 (13:20 +0100)] 
Merge pull request #33529 from neighbourhoodie/tests/dns-link

Tests for DNS Link functions

16 months agoMerge pull request #33528 from neighbourhoodie/tests/dns-answer
Luca Boccassi [Tue, 23 Jul 2024 12:15:16 +0000 (13:15 +0100)] 
Merge pull request #33528 from neighbourhoodie/tests/dns-answer

16 months agoresolved: tests for dns_answer_order_by_scope()
James Coglan [Tue, 28 May 2024 15:50:16 +0000 (16:50 +0100)] 
resolved: tests for dns_answer_order_by_scope()

16 months agoresolved: tests for dns_answer_has_dname_for_cname()
James Coglan [Tue, 28 May 2024 15:01:56 +0000 (16:01 +0100)] 
resolved: tests for dns_answer_has_dname_for_cname()

16 months agoresolved: tests for dns_answer_dump()
James Coglan [Tue, 28 May 2024 14:25:15 +0000 (15:25 +0100)] 
resolved: tests for dns_answer_dump()

16 months agoresolved: tests for dns_answer_{copy,move}_by_key()
James Coglan [Tue, 28 May 2024 13:44:58 +0000 (14:44 +0100)] 
resolved: tests for dns_answer_{copy,move}_by_key()

16 months agoresolved: tests for dns_answer_remove_by_answer_keys()
James Coglan [Tue, 28 May 2024 13:05:39 +0000 (14:05 +0100)] 
resolved: tests for dns_answer_remove_by_answer_keys()

16 months agoresolved: tests for dns_answer_remove_by_{key,rr}()
James Coglan [Fri, 24 May 2024 15:48:42 +0000 (16:48 +0100)] 
resolved: tests for dns_answer_remove_by_{key,rr}()

16 months agoresolved: tests for dns_answer_merge() and dns_answer_extend()
James Coglan [Fri, 24 May 2024 15:10:13 +0000 (16:10 +0100)] 
resolved: tests for dns_answer_merge() and dns_answer_extend()

16 months agoresolved: tests for dns_answer_find_soa()
James Coglan [Fri, 24 May 2024 14:22:47 +0000 (15:22 +0100)] 
resolved: tests for dns_answer_find_soa()

16 months agoresolved: tests for dns_answer_add(), dns_answer_match_key()
James Coglan [Fri, 24 May 2024 13:52:41 +0000 (14:52 +0100)] 
resolved: tests for dns_answer_add(), dns_answer_match_key()

16 months agoMerge pull request #33526 from neighbourhoodie/tests/dns-question
Luca Boccassi [Tue, 23 Jul 2024 12:10:01 +0000 (13:10 +0100)] 
Merge pull request #33526 from neighbourhoodie/tests/dns-question

16 months agoresolved: tests for dns_question_merge()
James Coglan [Fri, 31 May 2024 10:18:56 +0000 (11:18 +0100)] 
resolved: tests for dns_question_merge()

16 months agoresolved: tests for dns_question_first_name()
James Coglan [Fri, 31 May 2024 10:08:14 +0000 (11:08 +0100)] 
resolved: tests for dns_question_first_name()

16 months agoresolved: tests for dns_question_dump()
James Coglan [Fri, 31 May 2024 09:55:34 +0000 (10:55 +0100)] 
resolved: tests for dns_question_dump()

16 months agoresolved: tests for dns_question_cname_redirect()
James Coglan [Fri, 31 May 2024 09:29:44 +0000 (10:29 +0100)] 
resolved: tests for dns_question_cname_redirect()

16 months agoresolved: tests for dns_question_is_equal()
James Coglan [Fri, 31 May 2024 08:47:11 +0000 (09:47 +0100)] 
resolved: tests for dns_question_is_equal()

16 months agoresolved: tests for dns_question_is_valid_for_query()
James Coglan [Fri, 31 May 2024 08:37:00 +0000 (09:37 +0100)] 
resolved: tests for dns_question_is_valid_for_query()

16 months agoresolved: tests for dns_question_matches_cname_or_dname()
James Coglan [Thu, 30 May 2024 17:46:12 +0000 (18:46 +0100)] 
resolved: tests for dns_question_matches_cname_or_dname()

16 months agoresolved: tests for dns_question_matches_rr()
James Coglan [Thu, 30 May 2024 17:38:57 +0000 (18:38 +0100)] 
resolved: tests for dns_question_matches_rr()

16 months agoresolved: tests for dns_question_new_service()
James Coglan [Thu, 30 May 2024 17:11:10 +0000 (18:11 +0100)] 
resolved: tests for dns_question_new_service()

16 months agoresolved: tests for dns_question_new_reverse()
James Coglan [Thu, 30 May 2024 16:37:54 +0000 (17:37 +0100)] 
resolved: tests for dns_question_new_reverse()

16 months agoresolved: tests for dns_question_new_address()
James Coglan [Thu, 30 May 2024 16:22:30 +0000 (17:22 +0100)] 
resolved: tests for dns_question_new_address()

16 months agoresolved: tests for dns_question_add()
James Coglan [Thu, 30 May 2024 15:55:34 +0000 (16:55 +0100)] 
resolved: tests for dns_question_add()

16 months agoMerge pull request #33525 from neighbourhoodie/tests/dns-rr
Luca Boccassi [Tue, 23 Jul 2024 11:46:28 +0000 (12:46 +0100)] 
Merge pull request #33525 from neighbourhoodie/tests/dns-rr

16 months agoresolved: tests for dns_resource_record_source(), dns_resource_record_is_synthetic...
James Coglan [Wed, 12 Jun 2024 10:07:03 +0000 (11:07 +0100)] 
resolved: tests for dns_resource_record_source(), dns_resource_record_is_synthetic(), dns_resource_record_signer(), dns_resource_record_is_signer()

16 months agoresolved: tests for dns_resource_record_to_wire_format()
James Coglan [Wed, 12 Jun 2024 09:50:05 +0000 (10:50 +0100)] 
resolved: tests for dns_resource_record_to_wire_format()

Note this function does not produce compressed domain names in the RDATA
when serializing the RR.

16 months agoresolved: tests for dns_resource_record_to_string()
James Coglan [Wed, 12 Jun 2024 09:24:25 +0000 (10:24 +0100)] 
resolved: tests for dns_resource_record_to_string()

16 months agoresolved: tests for dns_resource_key_{to,from}_json()
James Coglan [Wed, 29 May 2024 15:45:01 +0000 (16:45 +0100)] 
resolved: tests for dns_resource_key_{to,from}_json()

This test doesn't check the generated JSON data in detail, it simply
tests that round-tripping an RR key through the JSON representation
preserves its data.

16 months agoresolved: tests for dns_resource_record_clamp_ttl()
James Coglan [Wed, 29 May 2024 15:29:56 +0000 (16:29 +0100)] 
resolved: tests for dns_resource_record_clamp_ttl()

16 months agoresolved: tests for dns_resource_record_equal(); LOC records
James Coglan [Wed, 12 Jun 2024 17:47:55 +0000 (18:47 +0100)] 
resolved: tests for dns_resource_record_equal(); LOC records

16 months agoresolved: tests for dns_resource_record_equal(); SVCB records
James Coglan [Wed, 12 Jun 2024 16:56:30 +0000 (17:56 +0100)] 
resolved: tests for dns_resource_record_equal(); SVCB records

16 months agoresolved: tests for dns_resource_record_equal(); RRSIG records
James Coglan [Wed, 12 Jun 2024 16:17:29 +0000 (17:17 +0100)] 
resolved: tests for dns_resource_record_equal(); RRSIG records

16 months agoresolved: tests for dns_resource_record_equal(); NAPTR records
James Coglan [Wed, 12 Jun 2024 16:03:11 +0000 (17:03 +0100)] 
resolved: tests for dns_resource_record_equal(); NAPTR records

16 months agoresolved: tests for dns_resource_record_equal(); SRV records
James Coglan [Wed, 12 Jun 2024 15:39:12 +0000 (16:39 +0100)] 
resolved: tests for dns_resource_record_equal(); SRV records

16 months agoresolved: tests for dns_resource_record_equal(); TXT records
James Coglan [Wed, 12 Jun 2024 15:38:11 +0000 (16:38 +0100)] 
resolved: tests for dns_resource_record_equal(); TXT records

16 months agoresolved: tests for dns_resource_record_equal(); DNAME records
James Coglan [Wed, 12 Jun 2024 15:36:33 +0000 (16:36 +0100)] 
resolved: tests for dns_resource_record_equal(); DNAME records

16 months agoresolved: tests for dns_resource_record_equal(); MX records
James Coglan [Wed, 12 Jun 2024 15:33:41 +0000 (16:33 +0100)] 
resolved: tests for dns_resource_record_equal(); MX records

16 months agoresolved: tests for dns_resource_record_equal(); HINFO records
James Coglan [Wed, 12 Jun 2024 15:33:02 +0000 (16:33 +0100)] 
resolved: tests for dns_resource_record_equal(); HINFO records