]>
git.ipfire.org Git - thirdparty/systemd.git/log
Daan De Meyer [Wed, 24 Jul 2024 13:04:43 +0000 (15:04 +0200)]
tree-wide: Don't explicity disable copy-on-write when copying images
Since the copy helpers now copy file attributes as well, let's not
explicitly disable copy-on-write anymore when we copy an image. If
the source already has copy-on-write disabled, the copy will have it
disabled as well. Otherwise, the copy will also have copy-on-write
enabled.
This makes sure that reflinks always work as reflink is only supported
if both source and target are copy-on-write or both source and target
are not copy-on-write.
Daan De Meyer [Wed, 24 Jul 2024 12:56:11 +0000 (14:56 +0200)]
copy: Copy file attributes as well
Let's make sure we copy all file attributes that can be copied as
well.
Daan De Meyer [Wed, 24 Jul 2024 12:54:06 +0000 (14:54 +0200)]
Make read_attr_path() more generic
Let's make this an openat() like function so it can be used in more
scenarios.
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.
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.
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.
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.
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.
Daan De Meyer [Wed, 24 Jul 2024 08:50:38 +0000 (10:50 +0200)]
test-fs-util: Modernize openat_report_new() test
Daan De Meyer [Wed, 24 Jul 2024 07:56:25 +0000 (09:56 +0200)]
test-id128: Use new assertion macros
Daan De Meyer [Wed, 24 Jul 2024 07:56:01 +0000 (09:56 +0200)]
test: Add ASSERT_EQ_ID128() and ASSERT_NE_ID128()
Daan De Meyer [Wed, 24 Jul 2024 07:55:21 +0000 (09:55 +0200)]
test: Add ASSERT_FAIL()
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.
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
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
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.
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.
Luca Boccassi [Tue, 23 Jul 2024 14:44:40 +0000 (15:44 +0100)]
Merge pull request #33533 from neighbourhoodie/tests/dns-synthesize
James Coglan [Mon, 24 Jun 2024 13:43:18 +0000 (14:43 +0100)]
resolved: tests for dns_synthesize_family() and dns_synthesize_protocol()
James Coglan [Mon, 24 Jun 2024 13:23:23 +0000 (14:23 +0100)]
resolved: tests for dns_synthesize_answer()
Mary Strodl [Fri, 12 Jul 2024 13:38:05 +0000 (09:38 -0400)]
sd-dhcp-server: persist hardware addresses in leases
James Coglan [Mon, 24 Jun 2024 09:16:02 +0000 (10:16 +0100)]
resolved: tests for dns_query_string()
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()
James Coglan [Mon, 24 Jun 2024 07:51:38 +0000 (08:51 +0100)]
resolved: refactor environment management in dns_query_go() tests
James Coglan [Fri, 21 Jun 2024 16:56:22 +0000 (17:56 +0100)]
resolved: tests for dns_query_go() when configured with search domains
James Coglan [Fri, 21 Jun 2024 16:43:16 +0000 (17:43 +0100)]
resolved: tests for dns_query_go() when no scopes are available
James Coglan [Fri, 21 Jun 2024 16:01:01 +0000 (17:01 +0100)]
resolved: tests for dns_query_go() using a bypass query
James Coglan [Fri, 21 Jun 2024 14:40:20 +0000 (15:40 +0100)]
resolved: tests for dns_query_go() -- with and without network link
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
James Coglan [Thu, 20 Jun 2024 16:03:33 +0000 (17:03 +0100)]
resolved: tests for dns_query_process_cname_many()
James Coglan [Thu, 20 Jun 2024 15:24:58 +0000 (16:24 +0100)]
resolved: tests for common usage of dns_query_process_cname_one()
James Coglan [Thu, 20 Jun 2024 13:10:14 +0000 (14:10 +0100)]
resolved: tests for dns_query_make_auxiliary()
James Coglan [Thu, 20 Jun 2024 09:13:21 +0000 (10:13 +0100)]
resolved: tests for dns_query_new()
James Coglan [Wed, 19 Jun 2024 11:22:49 +0000 (12:22 +0100)]
resolved: tests for dns_cache_lookup() clamping the TTL
James Coglan [Wed, 19 Jun 2024 11:01:06 +0000 (12:01 +0100)]
resolved: tests for dns_cache_put() for NXDOMAIN with no SOA
James Coglan [Wed, 19 Jun 2024 10:29:44 +0000 (11:29 +0100)]
resolved: test that pseudo classes and types are not cached
James Coglan [Wed, 19 Jun 2024 09:39:01 +0000 (10:39 +0100)]
resolves: tests for dns_cache_prune()
James Coglan [Wed, 19 Jun 2024 09:05:29 +0000 (10:05 +0100)]
resolved: tests for dns_cache_check_conflicts()
James Coglan [Tue, 18 Jun 2024 16:57:55 +0000 (17:57 +0100)]
resolved: tests for dns_cache_export_shared_to_packet()
James Coglan [Tue, 18 Jun 2024 15:19:07 +0000 (16:19 +0100)]
resolved: tests for dns_cache_lookup(); mDNS and multiple matching entries
James Coglan [Tue, 18 Jun 2024 14:02:30 +0000 (15:02 +0100)]
resolved: tests for dns_cache_lookup() returning the most recent input
James Coglan [Fri, 24 May 2024 09:58:30 +0000 (10:58 +0100)]
resolved: tests for dns_cache_dump()
James Coglan [Thu, 23 May 2024 09:26:41 +0000 (10:26 +0100)]
resolved: test cache misses
James Coglan [Thu, 23 May 2024 08:53:42 +0000 (09:53 +0100)]
resolved: tests for dns_cache_lookup() for NXDOMAIN
James Coglan [Wed, 22 May 2024 15:49:18 +0000 (16:49 +0100)]
resolved: first test for dns_cache_lookup()
James Coglan [Wed, 22 May 2024 14:54:36 +0000 (15:54 +0100)]
resolved: tests for dns_cache_dump_to_json()
James Coglan [Thu, 23 May 2024 14:57:05 +0000 (15:57 +0100)]
resolved: check that adding an expired response removes cache entry
James Coglan [Tue, 21 May 2024 15:26:31 +0000 (16:26 +0100)]
resolved: tests for dns_cache_put(); CNAME success and name error
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
James Coglan [Tue, 21 May 2024 13:49:40 +0000 (14:49 +0100)]
resolved: refactor DNS answer construction for cache tests
James Coglan [Tue, 21 May 2024 13:39:26 +0000 (14:39 +0100)]
resolved: test for dns_cache_put() with empty answer
James Coglan [Tue, 21 May 2024 13:30:30 +0000 (14:30 +0100)]
resolved: tests for dns_cache_put() with different RCODEs
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
Luca Boccassi [Tue, 23 Jul 2024 12:29:03 +0000 (13:29 +0100)]
Merge pull request #33531 from neighbourhoodie/tests/dns-zone
James Coglan [Wed, 5 Jun 2024 11:13:18 +0000 (12:13 +0100)]
resolved: tests for dns_zone_lookup()
James Coglan [Fri, 31 May 2024 15:50:17 +0000 (16:50 +0100)]
resolved: tests for dns_zone_remove_rrs_by_key()
James Coglan [Fri, 31 May 2024 15:35:36 +0000 (16:35 +0100)]
resolved: tests for dns_zone_remove_rr()
James Coglan [Fri, 31 May 2024 14:42:18 +0000 (15:42 +0100)]
resolved: tests for dns_zone_put()
Luca Boccassi [Tue, 23 Jul 2024 12:23:44 +0000 (13:23 +0100)]
Merge pull request #33530 from neighbourhoodie/tests/dns-search-domain
James Coglan [Fri, 31 May 2024 14:15:48 +0000 (15:15 +0100)]
resolved: tests for dns_search_domain_find()
James Coglan [Fri, 31 May 2024 14:11:53 +0000 (15:11 +0100)]
resolved: tests for search domain marking and unlinking
James Coglan [Fri, 31 May 2024 13:50:20 +0000 (14:50 +0100)]
resolved: extract function for checking search domains
James Coglan [Fri, 31 May 2024 13:37:01 +0000 (14:37 +0100)]
resolved: tests for dns_search_domain_unlink()
James Coglan [Fri, 31 May 2024 11:56:11 +0000 (12:56 +0100)]
resolved: tests for dns_search_domain_new()
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
Luca Boccassi [Tue, 23 Jul 2024 12:15:16 +0000 (13:15 +0100)]
Merge pull request #33528 from neighbourhoodie/tests/dns-answer
James Coglan [Tue, 28 May 2024 15:50:16 +0000 (16:50 +0100)]
resolved: tests for dns_answer_order_by_scope()
James Coglan [Tue, 28 May 2024 15:01:56 +0000 (16:01 +0100)]
resolved: tests for dns_answer_has_dname_for_cname()
James Coglan [Tue, 28 May 2024 14:25:15 +0000 (15:25 +0100)]
resolved: tests for dns_answer_dump()
James Coglan [Tue, 28 May 2024 13:44:58 +0000 (14:44 +0100)]
resolved: tests for dns_answer_{copy,move}_by_key()
James Coglan [Tue, 28 May 2024 13:05:39 +0000 (14:05 +0100)]
resolved: tests for dns_answer_remove_by_answer_keys()
James Coglan [Fri, 24 May 2024 15:48:42 +0000 (16:48 +0100)]
resolved: tests for dns_answer_remove_by_{key,rr}()
James Coglan [Fri, 24 May 2024 15:10:13 +0000 (16:10 +0100)]
resolved: tests for dns_answer_merge() and dns_answer_extend()
James Coglan [Fri, 24 May 2024 14:22:47 +0000 (15:22 +0100)]
resolved: tests for dns_answer_find_soa()
James Coglan [Fri, 24 May 2024 13:52:41 +0000 (14:52 +0100)]
resolved: tests for dns_answer_add(), dns_answer_match_key()
Luca Boccassi [Tue, 23 Jul 2024 12:10:01 +0000 (13:10 +0100)]
Merge pull request #33526 from neighbourhoodie/tests/dns-question
James Coglan [Fri, 31 May 2024 10:18:56 +0000 (11:18 +0100)]
resolved: tests for dns_question_merge()
James Coglan [Fri, 31 May 2024 10:08:14 +0000 (11:08 +0100)]
resolved: tests for dns_question_first_name()
James Coglan [Fri, 31 May 2024 09:55:34 +0000 (10:55 +0100)]
resolved: tests for dns_question_dump()
James Coglan [Fri, 31 May 2024 09:29:44 +0000 (10:29 +0100)]
resolved: tests for dns_question_cname_redirect()
James Coglan [Fri, 31 May 2024 08:47:11 +0000 (09:47 +0100)]
resolved: tests for dns_question_is_equal()
James Coglan [Fri, 31 May 2024 08:37:00 +0000 (09:37 +0100)]
resolved: tests for dns_question_is_valid_for_query()
James Coglan [Thu, 30 May 2024 17:46:12 +0000 (18:46 +0100)]
resolved: tests for dns_question_matches_cname_or_dname()
James Coglan [Thu, 30 May 2024 17:38:57 +0000 (18:38 +0100)]
resolved: tests for dns_question_matches_rr()
James Coglan [Thu, 30 May 2024 17:11:10 +0000 (18:11 +0100)]
resolved: tests for dns_question_new_service()
James Coglan [Thu, 30 May 2024 16:37:54 +0000 (17:37 +0100)]
resolved: tests for dns_question_new_reverse()
James Coglan [Thu, 30 May 2024 16:22:30 +0000 (17:22 +0100)]
resolved: tests for dns_question_new_address()
James Coglan [Thu, 30 May 2024 15:55:34 +0000 (16:55 +0100)]
resolved: tests for dns_question_add()
Luca Boccassi [Tue, 23 Jul 2024 11:46:28 +0000 (12:46 +0100)]
Merge pull request #33525 from neighbourhoodie/tests/dns-rr
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()
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.
James Coglan [Wed, 12 Jun 2024 09:24:25 +0000 (10:24 +0100)]
resolved: tests for dns_resource_record_to_string()
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.
James Coglan [Wed, 29 May 2024 15:29:56 +0000 (16:29 +0100)]
resolved: tests for dns_resource_record_clamp_ttl()
James Coglan [Wed, 12 Jun 2024 17:47:55 +0000 (18:47 +0100)]
resolved: tests for dns_resource_record_equal(); LOC records
James Coglan [Wed, 12 Jun 2024 16:56:30 +0000 (17:56 +0100)]
resolved: tests for dns_resource_record_equal(); SVCB records
James Coglan [Wed, 12 Jun 2024 16:17:29 +0000 (17:17 +0100)]
resolved: tests for dns_resource_record_equal(); RRSIG records
James Coglan [Wed, 12 Jun 2024 16:03:11 +0000 (17:03 +0100)]
resolved: tests for dns_resource_record_equal(); NAPTR records
James Coglan [Wed, 12 Jun 2024 15:39:12 +0000 (16:39 +0100)]
resolved: tests for dns_resource_record_equal(); SRV records
James Coglan [Wed, 12 Jun 2024 15:38:11 +0000 (16:38 +0100)]
resolved: tests for dns_resource_record_equal(); TXT records