innernet/client
Eva Pace de7ec99ad9
Optimize /etc/hosts writes (#259)
* hostsfile: change internal map from hash to btree

This change makes the innernet section of /etc/hosts always ordered and
deterministic. We can take advantage of that to avoid writes, that will
be done in another commit.

* hostsfile: reduce number of writes if content hasn't changed

* hostsfile: return bool to inform if file has been written

This commit also makes the logs print accordingly to the new behavior.

* hostsfile: remove has_content_changed in favor of comparing old and new sections

* hostsfile: print the correct hosts path in log message

* hostsfile: remove unnecessary intermediate variable
2023-06-02 08:42:54 +02:00
..
.rpm client, server: fix RPM build issue. 2021-06-01 01:30:40 +09:00
src Optimize /etc/hosts writes (#259) 2023-06-02 08:42:54 +02:00
.gitignore kabloomers. public release v1.0.0 2021-03-30 02:47:34 +09:00
Cargo.toml Various dependency updates (#265) 2023-06-01 01:25:46 -05:00
innernet.target systemd: Add file innernet.target 2021-04-06 23:22:28 +09:00
innernet@.service client, server systemd units: make Restart=always truly respected (#184) 2022-01-12 04:58:28 +09:00