Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readonly mode #2051

Open
ghost opened this issue Dec 10, 2015 · 4 comments
Open

Readonly mode #2051

ghost opened this issue Dec 10, 2015 · 4 comments
Labels
kind/enhancement A net-new feature or improvement to an existing feature topic/repo Topic repo

Comments

@ghost
Copy link

ghost commented Dec 10, 2015

Sometimes it'd be useful to temporarily put a daemon into readonly mode. It'd continue working normally, except that it won't accept writes of any kind. Ideally, there'd be no disk writes at all in this mode.

Use cases include updates and fs-repo-migrations, but also fire fighting of all kinds.

@ghost ghost added kind/enhancement A net-new feature or improvement to an existing feature topic/repo Topic repo labels Dec 10, 2015
@ghost ghost mentioned this issue Dec 10, 2015
@jbenet
Copy link
Member

jbenet commented Dec 10, 2015

@lgierth great idea

@RubenKelevra
Copy link
Contributor

@Stebalien I think this can be closed. You can just read a repo without running a daemon.

@Stebalien
Copy link
Member

That's not quite the same thing:

  1. ipfs add still works, even when offline.
  2. A "readonly" node should still be able to serve files over the network.

I believe the goal here is to make it possible to run a daemon from a read-only medium/snapshot.

@i-norden
Copy link

Curious if this can be closed since --writable bool - Enable writing objects (with POST, PUT and DELETE). flag exists or if the desired behavior is to create a mode where even "background" writes are not possible such as updating the local DHT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A net-new feature or improvement to an existing feature topic/repo Topic repo
Projects
None yet
Development

No branches or pull requests

4 participants