Skip to content

Commit

Permalink
ostree-repo-libarchive.c: major refactor
Browse files Browse the repository at this point in the history
- Make hardlink handling more generic. The previous strategy worked for
  tar archives, but not for cpio. It now works for both.
- Add support for SEL labeling (through the OstreeRepoCommitModifier)
- Add support for xattr_callback (through the OstreeRepoCommitModifier)
- Add support for filter (through the OstreeRepoCommitModifier)
- Add a use_ostree_convention option

Closes: #275
Approved by: cgwalters
  • Loading branch information
jlebon authored and cgwalters-bot committed May 6, 2016
1 parent 6724519 commit b1d3dd1
Show file tree
Hide file tree
Showing 4 changed files with 746 additions and 257 deletions.
16 changes: 0 additions & 16 deletions src/libostree/ostree-repo-commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@
#include <sys/xattr.h>
#include <glib/gprintf.h>

struct OstreeRepoCommitModifier {
volatile gint refcount;

OstreeRepoCommitModifierFlags flags;
OstreeRepoCommitFilter filter;
gpointer user_data;
GDestroyNotify destroy_notify;

OstreeRepoCommitModifierXattrCallback xattr_callback;
GDestroyNotify xattr_destroy;
gpointer xattr_user_data;

OstreeSePolicy *sepolicy;
GHashTable *devino_cache;
};

gboolean
_ostree_repo_ensure_loose_objdir_at (int dfd,
const char *loose_path,
Expand Down
Loading

0 comments on commit b1d3dd1

Please sign in to comment.