Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

bucache: save and restore xattrs, ACLs #1668

Merged
merged 21 commits into from
Aug 30, 2023
Merged

bucache: save and restore xattrs, ACLs #1668

merged 21 commits into from
Aug 30, 2023

Conversation

lucaudill
Copy link
Collaborator

closes #1287

@lucaudill lucaudill changed the title save and restore Xattrs bucache: save and restore Xattrs Jun 6, 2023
@lucaudill lucaudill changed the title bucache: save and restore Xattrs bucache: save and restore xattrs Jun 7, 2023
@lucaudill lucaudill requested a review from reidpr June 22, 2023 18:45
Copy link
Collaborator

@reidpr reidpr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice work! Several notes in-line.

bin/ch-convert Outdated Show resolved Hide resolved
bin/ch-convert Outdated Show resolved Hide resolved
doc/ch-image.rst Outdated Show resolved Hide resolved
doc/ch-image.rst Outdated Show resolved Hide resolved
doc/ch-image.rst Outdated Show resolved Hide resolved
@@ -599,9 +599,10 @@ def exit(code):

def init(cli):
# logging
global log_festoon, log_fp, trace_fatal, verbose
global log_festoon, log_fp, trace_fatal, verbose, xattrs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I bet you haven't worked on any other projects with a variable named festoon lol.

test/build/55_cache.bats Outdated Show resolved Hide resolved
test/build/55_cache.bats Outdated Show resolved Hide resolved
test/make-auto.d/build_custom.bats.in Outdated Show resolved Hide resolved
test/make-auto.d/build_custom.bats.in Outdated Show resolved Hide resolved
@lucaudill lucaudill marked this pull request as ready for review July 25, 2023 19:01
@lucaudill lucaudill requested a review from reidpr July 25, 2023 19:01
@lucaudill lucaudill changed the title bucache: save and restore xattrs bucache: save and restore xattrs, ACLs Aug 3, 2023
Copy link
Collaborator

@reidpr reidpr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff! Various nit-picks in-line.

bin/ch-convert Outdated Show resolved Hide resolved
bin/ch-image.py.in Outdated Show resolved Hide resolved
doc/ch-convert.rst Outdated Show resolved Hide resolved
doc/ch-image.rst Outdated Show resolved Hide resolved
lib/build_cache.py Outdated Show resolved Hide resolved
test/build/55_cache.bats Show resolved Hide resolved
test/build/55_cache.bats Show resolved Hide resolved
test/run/ch-convert.bats Outdated Show resolved Hide resolved
cd "$BATS_TMPDIR"

borked_img="borked_image"
borked_file="$borked_img/home/foo"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style:

Suggested change
borked_file="$borked_img/home/foo"
borked_file="${borked_img}/home/foo"

Also I recommend a directory other than /home because that gets special treatment sometimes.

@lucaudill lucaudill requested a review from reidpr August 29, 2023 22:41
@reidpr reidpr merged commit 707f560 into master Aug 30, 2023
6 checks passed
@reidpr reidpr deleted the xattr-save_1287 branch August 30, 2023 17:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ch-image: build cache: save and restore ACLs and xattrs
2 participants