summaryrefslogtreecommitdiff
path: root/src/network/networkd-network.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-04-22 12:33:15 +0900
committerDaan De Meyer <daan.j.demeyer@gmail.com>2022-05-03 10:26:22 +0200
commitbdb2d3c6889408c7f26c2eeddbe9021ac53f962c (patch)
treeb7fde0f15e2665ed9f195aa9f5e50239365f76f0 /src/network/networkd-network.c
parent968680b23d1629d33deeea98b4f2b5fd106075b5 (diff)
downloadsystemd-bdb2d3c6889408c7f26c2eeddbe9021ac53f962c.tar.gz
udev: check stats of .link files and their drop-in files
Fixes #23128.
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r--src/network/networkd-network.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 291707cd93..c0b8e3893c 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -591,28 +591,6 @@ int network_load(Manager *manager, OrderedHashmap **networks) {
return 0;
}
-static bool stats_by_path_equal(Hashmap *a, Hashmap *b) {
- struct stat *st_a, *st_b;
- const char *path;
-
- assert(a);
- assert(b);
-
- if (hashmap_size(a) != hashmap_size(b))
- return false;
-
- HASHMAP_FOREACH_KEY(st_a, path, a) {
- st_b = hashmap_get(b, path);
- if (!st_b)
- return false;
-
- if (!stat_inode_unmodified(st_a, st_b))
- return false;
- }
-
- return true;
-}
-
int network_reload(Manager *manager) {
OrderedHashmap *new_networks = NULL;
Network *n, *old;