Matthew Barnes
bb231fdf74
Use g_autoptr(GPtrArray) instead of gs_unref_ptrarray
2015-05-06 22:07:10 -04:00
Matthew Barnes
6a5f7b1288
Use glnx_unref_object instead of gs_unref_object
...
For non-GIO object types, at least until autocleanup support for GObject
based types becomes more widespread.
2015-05-06 22:07:04 -04:00
Matthew Barnes
4ee1acd981
Use g_autoptr() for GIO object types
...
GLib 2.44 supplies all the necessary autocleanup macros for GIO types,
and libglnx backports the relevant macros for ostree.
2015-05-06 21:51:19 -04:00
Matthew Barnes
7a62d64968
Use g_autofree instead of gs_free
2015-05-06 21:50:17 -04:00
Colin Walters
125889fd7e
Enforce 'rdev' (device file major/minor) is 0
...
Historically OSTree supported device files, but it wasn't useful, and
added attack surface. Support was removed in
https://git.gnome.org/browse/ostree/commit/?id=62a896350bd54bff5a9413d2ee0fad7ff4364f9a
Perform a further cleanup by enforcing internally that the device
major/minor must be 0.
Conflicts:
src/libostree/ostree-core.c
2014-12-19 10:20:05 -05:00
Colin Walters
c4efbf6718
core: Deduplicate code converting struct stat -> GFileInfo
...
We were doing the same thing in a number of places, make a helper
function.
2014-12-19 10:18:59 -05:00
Colin Walters
9f734494ff
libostree: Make OstreeLibarchiveInputStream explicitly private
...
We weren't installing the headers, but at the moment all symbols
starting with ostree_ were being exported. Fix that by prefixing
non-static symbols with '_'.
https://bugzilla.gnome.org/show_bug.cgi?id=731369
2014-06-09 14:04:53 -04:00
Jasper St. Pierre
6b4ef97c18
repo-libarchive: Apply commit modifiers to libarchive archives as well
...
And document the libarchive methods as well, so we can pass a NULL
commit modifier.
https://bugzilla.gnome.org/show_bug.cgi?id=707727
2013-09-09 22:51:43 -04:00
Jasper St. Pierre
5082e1d8e9
repo: Rename "stage" to "write" in the API
...
An earlier version of this API acted like git in that some objects
would be staged in a temporary directory which would be then committed
in one go by moving files around. The API doesn't match most users
expectations though, as while the stage is nice as a high-level API
it isn't really suited for low-level APIs.
While the stage was removed, the APIs were never renamed. Rename
them now so that they match expectations.
https://bugzilla.gnome.org/show_bug.cgi?id=707644
2013-09-06 20:31:12 -04:00
Colin Walters
23e2593b6d
repo: Use non-deprecated API with sufficiently new libarchive
...
Based on a patch Tobias Hunger <tobias.hunger@gmail.com>
2013-08-30 14:34:32 -04:00
Colin Walters
a5d43bb959
Install a shared library
...
This required a fair bit of surgery because previously ostree.h
included otutil.h, but that's supposed to be a private library.
2013-07-26 19:25:07 -04:00
Colin Walters
5aea9db3f2
Add API to retrieve statistics from transactions, use it in commit
...
It's just interesting to see =) This is also kind of prototyping out
some more "structured" output.
2013-07-25 19:23:25 -04:00
Colin Walters
3b6a94d272
libostree: Split off libarchive code
2013-07-09 19:11:37 -04:00