-
Notifications
You must be signed in to change notification settings - Fork 300
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
Add an API to set/unset a deployment tree's mutability #58
Conversation
This will be used by rpm-ostree to unset the immutable bit temporarily in order to do package layering. We could add an API to deploy a tree without the immutable bit, but this is simpler.
Otherwise looks okay to me. |
I guess I've found it easier so far to just carry them along everywhere, but I've no problem with dropping them either. |
Just to note where I'm coming from on this -- on my old desktop project, blocking the user interface was a major problem. In reworking the APIs I used GCancellable as one way to clearly indicate which functions can block and may require an asynchronous version. I understand it's not as applicable here, but the tendency carries over. |
To me this gets to a big conceptual question - e.g. opening a local file a blocking operation? What about directory enumeration? Gio at least includes Perhaps a middle ground is that "single operations" like |
Right, multi-step operations have natural check points for cancellation, especially when the steps are repetitive. I guess my objection is more with taking a For something like |
I'm still waffling on this. If we added the stanza for checking the cancellable, i.e. match what e.g. The dual factors of
have me leaning towards keeping them. |
Didn't mean to make this into a big issue so I'll relax a bit. I think as long as a function is just doing something with its |
I updated this to:
|
Backport fixes for list_objects bindings
This will be used by rpm-ostree to unset the immutable bit temporarily
in order to do package layering. We could add an API to deploy a tree
without the immutable bit, but this is simpler.