Skip to content

allow backup/restore of cephfs mounts#554

Merged
arogge merged 5 commits intobareos:masterfrom
arogge:dev/arogge/master/xattr-bug
Aug 26, 2020
Merged

allow backup/restore of cephfs mounts#554
arogge merged 5 commits intobareos:masterfrom
arogge:dev/arogge/master/xattr-bug

Conversation

@arogge
Copy link
Member

@arogge arogge commented Jul 10, 2020

The filed did not pick up xattr on filesystems when st_dev == 0. This PR now also considers such filesystems. Additionally the virtual xattrs that cephfs provides were added to the blacklist for Linux.

@arogge arogge marked this pull request as draft July 10, 2020 09:26
@arogge
Copy link
Member Author

arogge commented Jul 10, 2020

This patch works on linux, but doesn't compile on Solaris, FreeBSD and Windows. Will need (probably minor) work.

Copy link
Contributor

@franku franku left a comment

Choose a reason for hiding this comment

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

Really good work, however I have two minor suggestions. Pls see the comments.

@arogge arogge force-pushed the dev/arogge/master/xattr-bug branch from 56295e0 to 7df1c22 Compare August 19, 2020 15:24
arogge added 4 commits August 20, 2020 10:44
Previously the filed did not pick up xattr on filesystems when
st_dev == 0. This patch now also considers such filesystems.
Additionally the virtual xattrs that cephfs provides were added to the
blacklist for Linux, so we don't back them up (they cannot be written on
restore, so backing them up is useless and restoring them will fail).
A simple test to check whether attributes set with setfattr are backed
up and restored properly.
A simple test to check whether attributes set with setfacl are backed
up and restored properly.
Previously the filed did not pick up acl on filesystems when
st_dev == 0. This patch now also considers such filesystems.
@arogge arogge force-pushed the dev/arogge/master/xattr-bug branch from 7df1c22 to 297c8e7 Compare August 20, 2020 08:45
Older CMake doesn't support file(TOUCH) yet, so we use file(WRITE)
instead.
@arogge arogge marked this pull request as ready for review August 21, 2020 11:51
Copy link
Contributor

@franku franku left a comment

Choose a reason for hiding this comment

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

SETFACL_WORKS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants