Skip to content

Reload config - #662

Closed
cgwalters wants to merge 1 commit into
ostreedev:masterfrom
cgwalters:reload-config
Closed

cgwalters wants to merge 1 commit into
ostreedev:masterfrom
cgwalters:reload-config

Conversation

@cgwalters

Copy link
Copy Markdown
Member

No description provided.

@cgwalters

Copy link
Copy Markdown
Member Author

Prep patches in #661

@jlebon

jlebon commented Feb 1, 2017

Copy link
Copy Markdown
Member

Hmm, there are other things that we'll probably need to add reload support for (e.g. the repo config itself). Maybe we should call the function ostree_repo_reload() and add flags?

@rh-atomic-bot

Copy link
Copy Markdown

☔ The latest upstream changes (presumably 1fd05fe) made this pull request unmergeable. Please resolve the merge conflicts.

For a long time we've cached the remote configs in the repo, which
mostly makes sense for the `repo/config` file, but less sense
for `/etc/ostree/remotes.d`, because we want to support admins
interactively editing them.

One can delete the repo instance and create a new one, but that's a bit ugly.
Let's introduce an API for this so rpm-ostree can reload remotes after
admins/scripts edit them in `/etc`.  We also might as well reload
any other entries in the config.

Structurually now, `ostree_repo_open()` deals with file descriptors, and then
calls `ostree_repo_reload_config()`. Except for the uncompressed cache, which is
the only thing that deals with FDs that can be configured. But we want to delete
that anyways.

No tests, since...we don't have a daemon in this codebase, don't want to shave
that yak just today.
@cgwalters

Copy link
Copy Markdown
Member Author

Rebased 🏄 And now reloads all of the config ✅

@jlebon

jlebon commented Feb 7, 2017

Copy link
Copy Markdown
Member

Ouuhh very nice!

@rh-atomic-bot r+ 4801f64

@rh-atomic-bot

Copy link
Copy Markdown

⌛ Testing commit 4801f64 with merge 9c0af41...

@rh-atomic-bot

Copy link
Copy Markdown

☀️ Test successful - status-atomicjenkins
Approved by: jlebon
Pushing 9c0af41 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants