lix/src
Ben Radford 6ae35534b7
Support opening local store with database on read-only filesystem (#8356)
Previously it was not possible to open a local store when its database is on a read-only filesystem. Obviously a store on a read-only filesystem cannot be modified, but it would still be useful to be able to query it.

This change adds a new read-only setting to LocalStore. When set to true, Nix will skip operations that fail when the database is on a read-only filesystem (acquiring big-lock, schema migration, etc), and the store database will be opened in immutable mode.

Co-authored-by: Ben Radford <benradf@users.noreply.github.com>
Co-authored-by: cidkidnix <cidkidnix@protonmail.com>
Co-authored-by: Dylan Green <67574902+cidkidnix@users.noreply.github.com>
Co-authored-by: John Ericson <git@JohnEricson.me>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-06-20 11:34:09 +02:00
..
build-remote Put worker protocol items inside a WorkerProto struct 2023-06-19 12:08:23 -04:00
libcmd Clean up a few things related to profiles (#8526) 2023-06-19 04:04:59 +00:00
libexpr src/libexpr/eval.hh: add link for allowed-uris option 2023-06-18 23:36:32 -04:00
libfetchers Allow tarball URLs to redirect to a lockable immutable URL 2023-06-13 14:17:45 +02:00
libmain nix: Support the --repair flag 2023-04-28 17:03:04 +02:00
libstore Support opening local store with database on read-only filesystem (#8356) 2023-06-20 11:34:09 +02:00
libutil Support opening local store with database on read-only filesystem (#8356) 2023-06-20 11:34:09 +02:00
nix Create worker_proto::{Read,Write}Conn 2023-06-19 12:08:23 -04:00
nix-build nix: Support the --repair flag 2023-04-28 17:03:04 +02:00
nix-channel Add nix-channel --list-generations 2023-06-02 10:12:35 +02:00
nix-collect-garbage Clean up a few things related to profiles (#8526) 2023-06-19 04:04:59 +00:00
nix-copy-closure Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
nix-env Clean up a few things related to profiles (#8526) 2023-06-19 04:04:59 +00:00
nix-instantiate nix: Support the --repair flag 2023-04-28 17:03:04 +02:00
nix-store Create worker_proto::{Read,Write}Conn 2023-06-19 12:08:23 -04:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00