Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #577 from arogge/dev/arogge/bareos-19.2/xattr-bug
allow backup/restore of cephfs mounts (Backport for Bareos 19.2)
- Loading branch information
Showing
74 changed files
with
974 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# BAREOS® - Backup Archiving REcovery Open Sourced | ||
# | ||
# Copyright (C) 2020-2020 Bareos GmbH & Co. KG | ||
# | ||
# This program is Free Software; you can redistribute it and/or modify it under | ||
# the terms of version three of the GNU Affero General Public License as | ||
# published by the Free Software Foundation and included in the file LICENSE. | ||
# | ||
# This program is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||
# details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License along | ||
# with this program; if not, write to the Free Software Foundation, Inc., 51 | ||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
|
||
# Extract version information and commit timestamp if run in a git checkout | ||
|
||
find_program(SETFACL_PROG setfacl) | ||
find_program(GETFACL_PROG getfacl) | ||
|
||
set(SETFACL_WORKS NO) | ||
if(SETFACL_PROG AND GETFACL_PROG) | ||
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/acl-test-file.txt" "Just a testfile") | ||
exec_program(${SETFACL_PROG} | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
ARGS "-m user:0:rw- acl-test-file.txt" | ||
RETURN_VALUE SETFACL_RETURN) | ||
if(SETFACL_RETURN EQUAL 0) | ||
set(SETFACL_WORKS YES) | ||
endif() | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# BAREOS® - Backup Archiving REcovery Open Sourced | ||
# | ||
# Copyright (C) 2020-2020 Bareos GmbH & Co. KG | ||
# | ||
# This program is Free Software; you can redistribute it and/or modify it under | ||
# the terms of version three of the GNU Affero General Public License as | ||
# published by the Free Software Foundation and included in the file LICENSE. | ||
# | ||
# This program is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||
# details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License along | ||
# with this program; if not, write to the Free Software Foundation, Inc., 51 | ||
# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
|
||
# Extract version information and commit timestamp if run in a git checkout | ||
|
||
find_program(SETFATTR_PROG setfattr) | ||
find_program(GETFATTR_PROG getfattr) | ||
|
||
set(SETFATTR_WORKS NO) | ||
if(SETFATTR_PROG AND GETFATTR_PROG) | ||
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/xattr-test-file.txt" "Just a testfile") | ||
exec_program(${SETFATTR_PROG} | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
ARGS "--name=user.cmake-check --value=xattr-value xattr-test-file.txt" | ||
RETURN_VALUE SETFATTR_RETURN) | ||
if(SETFATTR_RETURN EQUAL 0) | ||
set(SETFATTR_WORKS YES) | ||
endif() | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.