lib/commit: automatically skip xattrs in bare-user-only mode
This commit is contained in:
parent
f75552e15c
commit
3e2360e3bb
|
|
@ -3382,8 +3382,9 @@ get_final_xattrs (OstreeRepo *self,
|
||||||
/* track whether the returned xattrs differ from the file on disk */
|
/* track whether the returned xattrs differ from the file on disk */
|
||||||
gboolean modified = TRUE;
|
gboolean modified = TRUE;
|
||||||
const gboolean skip_xattrs = (modifier &&
|
const gboolean skip_xattrs = (modifier &&
|
||||||
modifier->flags & (OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS |
|
(modifier->flags & (OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS |
|
||||||
OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS)) > 0;
|
OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS)) > 0) ||
|
||||||
|
self->mode == OSTREE_REPO_MODE_BARE_USER_ONLY;
|
||||||
|
|
||||||
/* fetch on-disk xattrs if needed & not disabled */
|
/* fetch on-disk xattrs if needed & not disabled */
|
||||||
g_autoptr(GVariant) original_xattrs = NULL;
|
g_autoptr(GVariant) original_xattrs = NULL;
|
||||||
|
|
|
||||||
|
|
@ -684,7 +684,7 @@ typedef OstreeRepoCommitFilterResult (*OstreeRepoCommitFilter) (OstreeRepo *r
|
||||||
* @OSTREE_REPO_COMMIT_MODIFIER_FLAGS_DEVINO_CANONICAL: If a devino cache hit is found, skip modifier filters (non-directories only); Since: 2017.14
|
* @OSTREE_REPO_COMMIT_MODIFIER_FLAGS_DEVINO_CANONICAL: If a devino cache hit is found, skip modifier filters (non-directories only); Since: 2017.14
|
||||||
*
|
*
|
||||||
* Flags modifying commit behavior. In bare-user-only mode, @OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS
|
* Flags modifying commit behavior. In bare-user-only mode, @OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS
|
||||||
* is automatically enabled.
|
* and @OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS are automatically enabled.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue