You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/ipn
Joe Tsai 2ad040db3b ipn/store: improve FileStore.WriteState atomicity
If an error occurs with FileStore.WriteState, it should not record
the provided value as this results in an inconsistency between
what is cached in memory and what is stored on disk.

Also, update the documentation of StateStore.ReadState
to indicate that the returned value should be treated as immutable.
This property is assumed by the fact that FileStore.ReadState
returns the same slice of bytes for repeated calls to the same key.

Updates #cleanup

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2 years ago
..
conffile ipn/{conffile,ipnlocal}: start booting tailscaled from a config file w/ auth key 2 years ago
ipnauth all: update copyright and license headers 3 years ago
ipnlocal ipn/ipnlocal: prevent changing serve config if conf.Locked 2 years ago
ipnserver logpolicy, various: allow overriding log function 2 years ago
ipnstate client/web: restrict full management client behind browser sessions 2 years ago
localapi ipn/localapi,client/web: clean up auth error handling 2 years ago
policy ipn: prefer allow/denylist terminology 3 years ago
store ipn/store: improve FileStore.WriteState atomicity 2 years ago
backend.go cmd/tailscale,ipn/ipnlocal: print debug component names 2 years ago
conf.go ipn/{conffile,ipnlocal}: start booting tailscaled from a config file w/ auth key 2 years ago
doc.go all: update copyright and license headers 3 years ago
fake_test.go all: update copyright and license headers 3 years ago
ipn_clone.go ipn: add PostureChecks to Prefs 2 years ago
ipn_test.go net/packet: split off checksum munging into different pkg 2 years ago
ipn_view.go ipn: add PostureChecks to Prefs 2 years ago
prefs.go ipn: add PostureChecks to Prefs 2 years ago
prefs_test.go ipn: add PostureChecks to Prefs 2 years ago
serve.go ipn: use NodeCapMap in CheckFunnel 2 years ago
serve_test.go ipn: use NodeCapMap in CheckFunnel 2 years ago
store.go ipn/store: improve FileStore.WriteState atomicity 2 years ago
store_test.go ipn: avoid useless no-op WriteState calls 2 years ago